-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
35 lines (30 loc) · 852 Bytes
/
Copy pathcloudbuild.yaml
File metadata and controls
35 lines (30 loc) · 852 Bytes
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
# Google Cloud Build configuration for DMAF
# Builds and pushes Docker image to Google Container Registry
steps:
# Build the Docker image
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-t'
- 'gcr.io/$PROJECT_ID/dmaf:$COMMIT_SHA'
- '-t'
- 'gcr.io/$PROJECT_ID/dmaf:latest'
- '.'
# Push the image with commit SHA tag
- name: 'gcr.io/cloud-builders/docker'
args:
- 'push'
- 'gcr.io/$PROJECT_ID/dmaf:$COMMIT_SHA'
# Push the latest tag
- name: 'gcr.io/cloud-builders/docker'
args:
- 'push'
- 'gcr.io/$PROJECT_ID/dmaf:latest'
# Images to be stored in Container Registry
images:
- 'gcr.io/$PROJECT_ID/dmaf:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/dmaf:latest'
# Build options
options:
machineType: 'N1_HIGHCPU_8' # Faster builds
logging: CLOUD_LOGGING_ONLY