UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 99e69dd9 authored by joshwolf's avatar joshwolf
Browse files

Merge branch 'hotfix/ci-release' into 'master'

properly sed secrets when running on a tagged build

See merge request platform-one/big-bang/umbrella!113
parents 391f62dd 298ac526
No related branches found
Tags 1.0.0-rc.2
1 merge request!113properly sed secrets when running on a tagged build
Pipeline #107068 passed
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment