add VERSION to individual jobs

Neither pipeline nor global variables are passed to downstream jobs, add
them individually per job even if it is always the same version.

Signed-off-by: Paul Spooren <mail@aparcar.org>
pull/65/head
Paul Spooren 2020-09-11 09:02:38 -10:00
parent b16454f65b
commit 750df8e0ae
1 changed files with 4 additions and 4 deletions

View File

@ -17,6 +17,7 @@ gen_targets_sdk() {
deploy-sdk_$ARCH:
extends: .deploy-sdk
variables:
VERSION: $VERSION
TARGETS: $TARGETS"
done
}
@ -26,15 +27,14 @@ gen_targets_imagebuilder() {
TARGET=$(echo "$LINE" | cut -d ' ' -f 1 | tr '/' '-')
echo "
deploy-imagebuilder_$TARGET:
extends: .deploy-imagebuilder"
extends: .deploy-imagebuilder
variables:
VERSION: $VERSION"
done
}
echo "include:
- local: .gitlab/ci/deploy.yml
variables:
VERSION: $VERSION
" > ../targets.yml
gen_targets_sdk >> ../targets.yml
gen_targets_imagebuilder >> ../targets.yml