setup gcp push

This commit is contained in:
Victor Barba 2022-03-22 16:06:49 +01:00
parent d6a302bd5e
commit e6646200e2
1 changed files with 1 additions and 0 deletions

View File

@ -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 "")