summaryrefslogtreecommitdiff
path: root/scripts/utils.sh
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-07 12:08:27 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-07 12:08:27 +0000
commite799c1393aaae58ace8f81141bd723b5d599c864 (patch)
treeb01b974fdbc372b674e80cb09a32588c6aeb17bd /scripts/utils.sh
parent8228f6e154ed6b1884fab3fe5dc79a0552662d1b (diff)
downloadgitlab-ce-e799c1393aaae58ace8f81141bd723b5d599c864.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/utils.sh')
-rw-r--r--scripts/utils.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/utils.sh b/scripts/utils.sh
index b9b40d3dbd5..c9e4a6a487d 100644
--- a/scripts/utils.sh
+++ b/scripts/utils.sh
@@ -218,3 +218,8 @@ function assets_image_tag() {
echo -n "${CI_COMMIT_SHA}"
fi
}
+
+function setup_gcloud() {
+ gcloud auth activate-service-account --key-file="${REVIEW_APPS_GCP_CREDENTIALS}"
+ gcloud config set project "${REVIEW_APPS_GCP_PROJECT}"
+}