Skip to content

Commit 968e484

Browse files
authored
Update cloudbuild.yml
1 parent d7fc849 commit 968e484

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cloudbuild.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ steps:
88
entrypoint: 'mvn'
99
args: ['clean', 'install']
1010

11-
# Docker build
11+
# Docker build and push
1212
- name: 'gcr.io/cloud-builders/docker'
1313
args: ['build', '-t', 'gcr.io/grafana-monitoring-demo/demo:$COMMIT_SHA', '-f', 'Dockerfile', '.']
14+
- name: 'gcr.io/cloud-builders/docker'
15+
args: ['push', 'gcr.io/grafana-monitoring-demo/cloud-build-repo/demo:$COMMIT_SHA']
1416
images:
1517
- 'gcr.io/grafana-monitoring-demo/demo:$COMMIT_SHA'
1618

1719

20+

0 commit comments

Comments
 (0)