summaryrefslogtreecommitdiffstats
path: root/jjb/releng/opnfv-manifest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/releng/opnfv-manifest.sh')
-rwxr-xr-xjjb/releng/opnfv-manifest.sh42
1 files changed, 0 insertions, 42 deletions
diff --git a/jjb/releng/opnfv-manifest.sh b/jjb/releng/opnfv-manifest.sh
deleted file mode 100755
index a740491c2..000000000
--- a/jjb/releng/opnfv-manifest.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-# SPDX-license-identifier: Apache-2.0
-##############################################################################
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-
-set -o errexit
-set -o nounset
-set -o pipefail
-
-# Starting creating manifest image for $DOCKER_REPO_NAME
-
-ARCH=(amd64 arm64)
-DOCKER_REPO_NAME=${DOCKER_REPO_NAME-}
-RELEASE_VERSION=${RELEASE_VERSION-}
-BRANCH=${BRANCH-}
-ARCH_TAG=${ARCH_TAG-}
-
-# Before script install manifest-tool:
-# cd .. && git clone https://github.com/estesp/manifest-tool
-# cd ../manifest-tool && sudo -E make && sudo -E make install
-
-if [[ "$BRANCH" == "master" ]]; then
- DOCKER_TAG="latest"
-elif [[ "$BRANCH" == "euphrates" ]]; then
- DOCKER_TAG="euphrates"
-elif [[ -n "${RELEASE_VERSION}" ]]; then
- DOCKER_TAG="${RELEASE_VERSION}"
-else
- DOCKER_TAG="stable"
-fi
-if [[ "${ARCH_TAG}" =~ "arm64" || "${ARCH_TAG}" =~ "amd64" ]]; then
- sudo manifest-tool push from-args --platforms linux/amd64,linux/arm64 \
- --template "${DOCKER_REPO_NAME}":"${ARCH[0]}"-"${DOCKER_TAG}" \
- --template "${DOCKER_REPO_NAME}":"${ARCH[1]}"-"${DOCKER_TAG}" \
- --target "${DOCKER_REPO_NAME}":"${DOCKER_TAG}"
-fi
-