From e6646200e295238f27310bba4db58a944a360374 Mon Sep 17 00:00:00 2001 From: Victor Barba Date: Tue, 22 Mar 2022 16:06:49 +0100 Subject: [PATCH] setup gcp push --- bitbucket-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index ee9d2a398..de4608a88 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -22,6 +22,7 @@ definitions: - echo $GCLOUD_API_KEYFILE | base64 -d > ./gcloud-api-key.json - gcloud auth activate-service-account --key-file gcloud-api-key.json - gcloud config set project $GCLOUD_PROJECT + - cat ./gcloud-api-key.json | docker login -u _json_key --password-stdin https://gcr.io # # Tag container & push # - export TAG=$(echo "$BITBUCKET_TAG" | sed -e "s/v//g") # - export SUFFIX=$([[ ! -z "$TAG" ]] && echo ":$TAG" || echo "")