From fb77dc26f87573c791e33a3f60fea8e22b79417b Mon Sep 17 00:00:00 2001 From: Victor Barba Date: Tue, 22 Mar 2022 16:01:08 +0100 Subject: [PATCH] setup gcp push --- bitbucket-pipelines.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 138871e9a..4cc2b543a 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -7,12 +7,19 @@ definitions: pipelines: branches: feature/VRFS-5283: - - step: - name: Build Container Image - script: - - docker build . - services: - - docker + # - step: + # name: Build Container Image + # script: + # - docker build . + # services: + # - docker + - step: push-gcp + name: Push to GCP registry + image: google/cloud-sdk:alpine + script: + - 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 develop: - step: name: Build Staging