summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDenes Nemeth <denes.nemeth@nokia.com>2018-05-15 22:12:54 +0200
committerDenes Nemeth <denes.nemeth@nokia.com>2018-05-16 21:10:37 +0200
commitbb2815b6bbb09bf250c345f184efc7d9f665a4e7 (patch)
treec8eda8b873f438f3958a8b8d93465cc386ac8c55 /shell
parent801d2a6ff0044cc64b937f9ecd19e08f1eaed801 (diff)
Store staging and snapshot artifict in same repo
ONAP community is not using the a separate repo for storing snapshot and staging artifacts. The change parameterises the docker build to be able to separately control the target repository and the build artifact type (snapshot / staging). It will also store the staging and snapshots in the same repo (10003). Change-Id: I505023a7cdab90fa8ecfeb540f6306f0e19c3d6d Signed-off-by: Denes Nemeth <denes.nemeth@nokia.com> Issue-ID: VFC-728
Diffstat (limited to 'shell')
-rw-r--r--shell/docker-build.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/docker-build.sh b/shell/docker-build.sh
index 080a8b638..1cb71d3ff 100644
--- a/shell/docker-build.sh
+++ b/shell/docker-build.sh
@@ -6,13 +6,13 @@ set -e -o pipefail
FULL_DATE=`date +'%Y%m%dT%H%M%S'`
IMAGE_VERSION=`xmlstarlet sel -N "x=http://maven.apache.org/POM/4.0.0" -t -v "/x:project/x:version" pom.xml | cut -c1-5`
-case "$DOCKERREGISTRY" in
- "$DOCKER_REGISTRY:10004")
+case "$BUILD_MODE" in
+ "STAGING")
DOCKER_TAG="$IMAGE_VERSION"-STAGING-"$FULL_DATE"Z
DOCKER_LATEST_TAG="$IMAGE_VERSION"-STAGING-latest
echo "Using tags $DOCKER_TAG and $DOCKER_LATEST_TAG"
;;
- "$DOCKER_REGISTRY:10003")
+ "SNAPSHOT")
DOCKER_TAG="$IMAGE_VERSION"-SNAPSHOT-"$FULL_DATE"Z
DOCKER_LATEST_TAG="$IMAGE_VERSION"-SNAPSHOT-latest
echo "Using tags $DOCKER_TAG and $DOCKER_LATEST_TAG"