diff --git a/scripts/deploy/01_deploy_bigbang.sh b/scripts/deploy/01_deploy_bigbang.sh index e5b6ea82222271170c175fb6873286e7432aea1e..150235a7207710e06daf99c9bf843b91cd3abc4f 100755 --- a/scripts/deploy/01_deploy_bigbang.sh +++ b/scripts/deploy/01_deploy_bigbang.sh @@ -29,4 +29,9 @@ helm upgrade -i bigbang chart -n bigbang --create-namespace \ ## Apply secrets kustomization pointing to current branch echo "Deploying secrets from the ${CI_COMMIT_REF_NAME} branch" -cat tests/ci/shared-secrets.yaml | sed 's|master|'$CI_COMMIT_REF_NAME'|g' | kubectl apply -f - \ No newline at end of file +if [[ -z "${CI_COMMIT_TAG}" ]]; then + cat tests/ci/shared-secrets.yaml | sed 's|master|'$CI_COMMIT_REF_NAME'|g' | kubectl apply -f - +else + # NOTE: $CI_COMMIT_REF_NAME = $CI_COMMIT_TAG when running on a tagged build + cat tests/ci/shared-secrets.yaml | sed 's|branch: master|tag: '$CI_COMMIT_REF_NAME'|g' | kubectl apply -f - +fi \ No newline at end of file