This commit is contained in:
Simon Bruder 2018-02-12 12:20:30 +00:00
parent 7be36fcf33
commit f4774a223f
2 changed files with 20 additions and 6 deletions

View file

@ -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
View file

@ -0,0 +1,3 @@
FROM hashicorp/packer
RUN apk add --no-cache ansible