UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 298ac526 authored by joshwolf's avatar joshwolf
Browse files

properly sed secrets when running on a tagged build

parent 391f62dd
No related branches found
No related tags found
No related merge requests found
......@@ -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