Skip to content

Commit c09ac36

Browse files
committed
add cloud build config
1 parent 25526b2 commit c09ac36

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cloudbuild.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
steps:
2+
- name: 'gcr.io/cloud-builders/docker'
3+
args: ['build', '-t', 'compile', '-f', 'Dockerfile.compile', '.']
4+
- name: 'gcr.io/cloud-builders/docker'
5+
args: ['build', '-t', 'gcr.io/$PROJECT_ID/hexo-gcloud', '.']
6+
- name: 'gcr.io/cloud-builders/docker'
7+
args: ['push', 'gcr.io/$PROJECT_ID/hexo-gcloud']
8+
- name: 'gcr.io/cloud-builders/gcloud'
9+
args: ['run', 'deploy', 'hexo-gcloud-service', '--image', 'gcr.io/$PROJECT_ID/hexo-gcloud', '--region', 'asia-east1', '--platform', 'managed', '--allow-unauthenticated', '--port', '80']

0 commit comments

Comments
 (0)