From bb813fbbd84bd16831d93019860ac348020c18a1 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: Fri, 12 May 2023 03:57:54 +0000 Subject: [PATCH] Update generate-deploy-stages.sh --- generate-deploy-stages.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/generate-deploy-stages.sh b/generate-deploy-stages.sh index 4d9a7c0..63cae83 100644 --- a/generate-deploy-stages.sh +++ b/generate-deploy-stages.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -e +set -ex basedir=$( cd "$(dirname "$0")" ; pwd -P ) echo TRIGGER_PAYLOAD=$TRIGGER_PAYLOAD cat $TRIGGER_PAYLOAD @@ -8,8 +8,9 @@ cat $TRIGGER_PAYLOAD | python3 -c "import sys, json; print(json.loads(json.load( TAG=$(cat ${TRIGGER_PAYLOAD} | python3 -c "import sys, json; print(json.loads(json.load(sys.stdin)['payload'])['ref'])" | grep "uat") touch deploy.yml if [ ! -z "${TAG}" ]; then - git clone --single-branch --branch ${TAG} https://github.com/MAAP-Project/maap-workspaces.git + git clone https://github.com/MAAP-Project/maap-workspaces.git pushd maap-workspaces + git checkout ${TAG} find base_images -type d -depth 1 > ${basedir}/images.txt cat ${basedir}/images.txt template="${basedir}/deploy.yml.tmpl" -- GitLab