Pass suite as a command-line argument for builds and derived images

This sets the stage for building multiple suites.  Note that migration
from Debian is not expected to work for multiple Devuan suites.
This commit is contained in:
Olaf Meeuwissen 2017-08-19 18:02:33 +09:00
parent 6a1214b6fc
commit 852c04930d
3 changed files with 4 additions and 4 deletions

View File

@ -29,9 +29,9 @@ migrate:
build:
stage: build
script:
- ./build.sh
- ./build.sh "$DEVUAN_SUITE"
derive:
stage: derive
script:
- ./derive.sh
- ./derive.sh "$DEVUAN_SUITE"

View File

@ -5,7 +5,7 @@
# License: GPL-3.0+
MIGRATED_IMAGE=$CI_REGISTRY_IMAGE/debian-$DEBIAN_VERSION/migrated
SUITE=$DEVUAN_SUITE
SUITE=$1
rm -rf rootfs || true

View File

@ -4,7 +4,7 @@
#
# License: GPL-3.0+
SUITE=$DEVUAN_SUITE
SUITE=$1
BASE_IMAGE=$CI_REGISTRY_IMAGE:$SUITE
IMAGE=$CI_REGISTRY_IMAGE/builder