Skip to content

Commit

Permalink
ci: Test deploy.sh
Browse files Browse the repository at this point in the history
#122: Deploy to separate GCP project
  • Loading branch information
MichaelAkvo committed Apr 13, 2022
1 parent 8e7145b commit f929b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# GCP_SERVICE_ACCOUNT_FILE - path to file containing GCP service account credentials
set -exuo pipefail

[[ "${CI_BRANCH}" != "main" && ! "${CI_TAG:=}" =~ promote.* ]] && { echo "Branch different than main and not a tag. Skip deploy"; exit 0; }
[[ "${CI_PULL_REQUEST:-}" == "true" ]] && { echo "Pull request. Skip deploy"; exit 0; }
#[[ "${CI_BRANCH}" != "main" && ! "${CI_TAG:=}" =~ promote.* ]] && { echo "Branch different than main and not a tag. Skip deploy"; exit 0; }
#[[ "${CI_PULL_REQUEST:-}" == "true" ]] && { echo "Pull request. Skip deploy"; exit 0; }

test -n "${CLOUDSDK_CORE_PROJECT}"
test -n "${CLOUDSDK_CONTAINER_CLUSTER}"
Expand Down

0 comments on commit f929b58

Please sign in to comment.