next try
This commit is contained in:
parent
7be36fcf33
commit
f4774a223f
2 changed files with 20 additions and 6 deletions
|
|
@ -1,16 +1,27 @@
|
|||
image:
|
||||
name: hashicorp/packer:light
|
||||
|
||||
before_script:
|
||||
- apk add --no-cache ansible-playbook
|
||||
- docker info
|
||||
|
||||
build_image:
|
||||
script:
|
||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
|
||||
- docker build -t $CI_REGISTRY_IMAGE:latest .
|
||||
- docker push $CI_REGISTRY_IMAGE:latest
|
||||
only:
|
||||
- master
|
||||
tags:
|
||||
- shell
|
||||
- x86
|
||||
|
||||
image:
|
||||
name: r.jalr.de/sbruder/packer-ansible
|
||||
|
||||
test:
|
||||
script:
|
||||
- packer validate packer.json
|
||||
- validate packer.json
|
||||
|
||||
build:
|
||||
script:
|
||||
- packer build packer.json
|
||||
- build packer.json
|
||||
artifacts:
|
||||
paths:
|
||||
- rootfs.tar
|
||||
|
|
|
|||
3
Dockerfile
Normal file
3
Dockerfile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
FROM hashicorp/packer
|
||||
|
||||
RUN apk add --no-cache ansible
|
||||
Loading…
Add table
Add a link
Reference in a new issue