summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLasse Kaihlavirta <l.kaihlavirt@partner.samsung.com>2021-01-26 13:35:02 +0200
committerDan Timoney <dtimoney@att.com>2021-01-27 15:17:35 +0000
commitef87ec9bc0c87220cfa57a5a72c628e2173b68ad (patch)
tree7c1781018680de59db1d81458f1e7f12d2689519
parent0adf90393f19ad54c61cb17b79f556b8fe9818f1 (diff)
Remove redundant staging tagging script
- unified merge verification no longer does docker image staging, so removing this script to avoid confusion Issue-ID: INT-1833 Signed-off-by: Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com> Change-Id: I29185a0a56b57513f323294ac95eca4fb03f4c10
-rwxr-xr-xdeployment/tag-docker-staging.sh48
1 files changed, 0 insertions, 48 deletions
diff --git a/deployment/tag-docker-staging.sh b/deployment/tag-docker-staging.sh
deleted file mode 100755
index 7aeb4737..00000000
--- a/deployment/tag-docker-staging.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2020 © Samsung Electronics Co., Ltd.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-DOCKER_REPOSITORY="nexus3.onap.org:10003"
-ORG="onap"
-IMAGES=("ccsdk-dgbuilder-image" "ccsdk-odlsli-alpine-image")
-IMAGE_NAME_BASE="${DOCKER_REPOSITORY}/${ORG}/"
-TAG_NAME=${UNIQUE_DOCKER_TAG}
-TIMESTAMP=`date +'%Y%m%dT%H%M%SZ'`
-set -x
-# Create tags based on version.properties
-source ../version.properties
-LATEST_MINOR_TAG=${release_name}.${sprint_number}-STAGING-latest
-LATEST_FULL_TAG=${release_name}.${sprint_number}.${feature_revision}-STAGING-latest
-LATEST_FULL_TIMESTAMP_TAG=${release_name}.${sprint_number}.${feature_revision}-STAGING-${TIMESTAMP}
-
-if [ ! -z "${TAG_NAME}" ]; then
-for i in ${!IMAGES[@]};
- do
- image=${IMAGE_NAME_BASE}${IMAGES[$i]}
- echo "Push STAGING tags for docker image ${image}"
- docker pull ${image}:${snapshot_version}-${TAG_NAME}
-
- docker tag ${image}:${snapshot_version}-${TAG_NAME} ${image}:${LATEST_MINOR_TAG}
- docker tag ${image}:${snapshot_version}-${TAG_NAME} ${image}:${LATEST_FULL_TAG}
- docker tag ${image}:${snapshot_version}-${TAG_NAME} ${image}:${LATEST_FULL_TIMESTAMP_TAG}
-
- docker push ${image}:${LATEST_MINOR_TAG}
- docker push ${image}:${LATEST_FULL_TAG}
- docker push ${image}:${LATEST_FULL_TIMESTAMP_TAG}
-
- done
-fi
-