shell build (no docker in docker)
This commit is contained in:
parent
d2992490c4
commit
93686464cc
1 changed files with 15 additions and 9 deletions
|
|
@ -1,6 +1,14 @@
|
|||
image:
|
||||
name: hashicorp/packer
|
||||
entrypoint: [""]
|
||||
before_script:
|
||||
- PACKER_VERSION=1.2.0
|
||||
- PACKER_SHA256SUM=d1b0fcc4e66dfe4919c25752d028a4e4466921bf0e3f75be3bbf1c85082e8040
|
||||
|
||||
- wget https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip
|
||||
- wget https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_SHA256SUMS
|
||||
|
||||
- sed -i '/.*linux_amd64.zip/!d' packer_${PACKER_VERSION}_SHA256SUMS
|
||||
- sha256sum -cs packer_${PACKER_VERSION}_SHA256SUMS
|
||||
- unzip packer_${PACKER_VERSION}_linux_amd64.zip -d .
|
||||
- rm -f packer_${PACKER_VERSION}_linux_amd64.zip
|
||||
|
||||
stages:
|
||||
- test
|
||||
|
|
@ -9,20 +17,18 @@ stages:
|
|||
test:
|
||||
stage: test
|
||||
script:
|
||||
- apk add --no-cache ansible
|
||||
- packer validate packer.json
|
||||
- ./packer validate packer.json
|
||||
tags:
|
||||
- docker
|
||||
- shell
|
||||
- x86
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- apk add --no-cache ansible
|
||||
- packer build packer.json
|
||||
- ./packer build packer.json
|
||||
artifacts:
|
||||
paths:
|
||||
- rootfs.tar
|
||||
tags:
|
||||
- docker
|
||||
- shell
|
||||
- x86
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue