refactor: move images to images/
Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
parent
ff8f943b3f
commit
1bfc4141b4
3 changed files with 13 additions and 19 deletions
|
|
@ -3,8 +3,6 @@ image:
|
|||
entrypoint: [""]
|
||||
|
||||
variables:
|
||||
PACKER_LOG: 1 # enable detailed logging
|
||||
PACKER_VAR_FILE: "vars.pkrvars.hcl"
|
||||
PACKER_CONFIG_DIR: $CI_PROJECT_DIR
|
||||
|
||||
cache:
|
||||
|
|
@ -19,13 +17,14 @@ stages:
|
|||
.parallel:
|
||||
parallel:
|
||||
matrix:
|
||||
- IMAGE: [ "flatcar" ]
|
||||
- IMAGE:
|
||||
- flatcar-stable
|
||||
|
||||
validate:
|
||||
extends: .parallel
|
||||
stage: validate
|
||||
variables:
|
||||
PACKER_WORKSPACE: images/$IMAGE
|
||||
PACKER_WORKSPACE: images
|
||||
script:
|
||||
- packer init $PACKER_WORKSPACE
|
||||
- packer fmt -check $PACKER_WORKSPACE
|
||||
|
|
@ -34,11 +33,7 @@ validate:
|
|||
build-image:
|
||||
extends: .parallel
|
||||
stage: build
|
||||
variables:
|
||||
PACKER_FILE: images/$IMAGE/image.pkr.hcl
|
||||
script:
|
||||
- |
|
||||
packer build \
|
||||
$PACKER_FILE
|
||||
- packer build $IMAGE.pkr.hcl
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "main"
|
||||
|
|
|
|||
Reference in a new issue