setup gcp push

This commit is contained in:
Victor Barba 2022-03-22 16:01:08 +01:00
parent 392653dc74
commit fb77dc26f8
1 changed files with 13 additions and 6 deletions

View File

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