mirror of https://github.com/openwrt/docker.git
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
parent
b16454f65b
commit
750df8e0ae
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue