-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
43 lines (42 loc) · 1.19 KB
/
cloudbuild.yaml
File metadata and controls
43 lines (42 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 2025 Lincoln Institute of Land Policy
# SPDX-License-Identifier: Apache-2.0
steps:
- name: gcr.io/cloud-builders/docker
args:
- '-c'
- 'docker pull gcr.io/$PROJECT_ID/asu-awo-pygeoapi:latest || exit 0'
entrypoint: bash
- name: gcr.io/cloud-builders/docker
args:
- build
- '-t'
- 'gcr.io/$PROJECT_ID/asu-awo-pygeoapi:latest'
- '--cache-from'
- 'gcr.io/$PROJECT_ID/asu-awo-pygeoapi:latest'
- '-f'
- pygeoapi-deployment/Dockerfile
- .
- name: gcr.io/cloud-builders/docker
args:
- push
- 'gcr.io/$PROJECT_ID/asu-awo-pygeoapi:latest'
id: Push
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk:slim"
args:
- run
- services
- update
- $_SERVICE_NAME
- "--platform=managed"
- >-
--image=gcr.io/$PROJECT_ID/asu-awo-pygeoapi:latest
- >-
--labels=managed-by=gcp-cloud-build-deploy-cloud-run,commit-sha=$COMMIT_SHA,gcb-build-id=$BUILD_ID,gcb-trigger-id=$_TRIGGER_ID
- "--region=$_DEPLOY_REGION"
- "--quiet"
id: Deploy
entrypoint: gcloud
images:
- 'gcr.io/$PROJECT_ID/asu-awo-pygeoapi:latest'
options:
logging: CLOUD_LOGGING_ONLY