mirror of
https://github.com/YunoHost/yunohost-ci.git
synced 2024-09-03 20:05:53 +02:00
add image support
This commit is contained in:
parent
7a0f43c273
commit
62be849b44
1 changed files with 5 additions and 4 deletions
9
base.sh
9
base.sh
|
@ -19,14 +19,15 @@
|
||||||
#CUSTOM_ENV_CI_PROJECT_DIR=/builds/yunohost/yunohost
|
#CUSTOM_ENV_CI_PROJECT_DIR=/builds/yunohost/yunohost
|
||||||
CONTAINER_ID="runner-$CUSTOM_ENV_CI_RUNNER_ID-project-$CUSTOM_ENV_CI_PROJECT_ID-concurrent-$CUSTOM_ENV_CI_CONCURRENT_PROJECT_ID-$CUSTOM_ENV_CI_JOB_ID"
|
CONTAINER_ID="runner-$CUSTOM_ENV_CI_RUNNER_ID-project-$CUSTOM_ENV_CI_PROJECT_ID-concurrent-$CUSTOM_ENV_CI_CONCURRENT_PROJECT_ID-$CUSTOM_ENV_CI_JOB_ID"
|
||||||
DEBIAN_VERSION="$CUSTOM_ENV_DEBIAN_VERSION"
|
DEBIAN_VERSION="$CUSTOM_ENV_DEBIAN_VERSION"
|
||||||
|
DEBIAN_VERSION=$(echo $CUSTOM_ENV_CI_JOB_IMAGE | cut -d':' -f1)
|
||||||
if [ -z "$DEBIAN_VERSION" ]
|
if [ -z "$DEBIAN_VERSION" ]
|
||||||
then
|
then
|
||||||
DEBIAN_VERSION="stretch"
|
DEBIAN_VERSION="stretch"
|
||||||
fi
|
fi
|
||||||
PROJECT_DIR="$CUSTOM_ENV_CI_PROJECT_DIR"
|
SNAPSHOT_NAME=$(echo $CUSTOM_ENV_CI_JOB_IMAGE | cut -d':' -f2)
|
||||||
PROJECT_NAME="$CUSTOM_ENV_CI_PROJECT_NAME"
|
|
||||||
SNAPSHOT_NAME="$CUSTOM_ENV_SNAPSHOT_NAME"
|
|
||||||
if [ -z "$SNAPSHOT_NAME" ]
|
if [ -z "$SNAPSHOT_NAME" ]
|
||||||
then
|
then
|
||||||
SNAPSHOT_NAME="after-postinstall"
|
SNAPSHOT_NAME="after-postinstall"
|
||||||
fi
|
fi
|
||||||
|
PROJECT_DIR="$CUSTOM_ENV_CI_PROJECT_DIR"
|
||||||
|
PROJECT_NAME="$CUSTOM_ENV_CI_PROJECT_NAME"
|
Loading…
Reference in a new issue