-
Notifications
You must be signed in to change notification settings - Fork 3
/
cloudbuild-devel.yaml
23 lines (23 loc) · 1017 Bytes
/
cloudbuild-devel.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# https://cloud.google.com/build/docs/configuring-builds/substitute-variable-values#using_default_substitutions
steps:
- name: gcr.io/cloud-builders/docker
args: [ 'build',
'-t', 'europe-west1-docker.pkg.dev/${PROJECT_ID}/binary-store/${REPO_NAME}-image:${SHORT_SHA}',
'-t', 'europe-west1-docker.pkg.dev/${PROJECT_ID}/binary-store/${REPO_NAME}-image:latest',
'.'
]
- name: gcr.io/cloud-builders/docker
args: ['push', 'europe-west1-docker.pkg.dev/${PROJECT_ID}/binary-store/${REPO_NAME}-image:${SHORT_SHA}']
- name: gcr.io/google.com/cloudsdktool/cloud-sdk
entrypoint: gcloud
args:
- run
- deploy
- ejks-sk
- '--image'
- europe-west1-docker.pkg.dev/${PROJECT_ID}/binary-store/${REPO_NAME}-image:${SHORT_SHA}
- '--region'
- europe-west1
images:
- europe-west1-docker.pkg.dev/${PROJECT_ID}/binary-store/${REPO_NAME}-image:${SHORT_SHA}
- europe-west1-docker.pkg.dev/${PROJECT_ID}/binary-store/${REPO_NAME}-image:latest