-
Notifications
You must be signed in to change notification settings - Fork 3
/
cloudbuild.yaml
31 lines (27 loc) · 924 Bytes
/
cloudbuild.yaml
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
steps:
# Build the container image
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/nuxt-app', '.']
# push the container image to Container Registry
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/nuxt-app']
# Deploy container image to Cloud Run
- name: 'gcr.io/cloud-builders/gcloud'
args: ['beta', 'run', 'deploy', 'nuxt-app', '--image', 'gcr.io/$PROJECT_ID/nuxt-app', '--region', 'us-central1']
images:
- 'gcr.io/$PROJECT_ID/nuxt-app'
# steps:
# # install
# - name: 'gcr.io/cloud-builders/npm'
# args: ['install']
# # install nuxt dependencies
# - name: 'gcr.io/cloud-builders/npm'
# args: ['install']
# dir: 'public'
# # generate the static site
# - name: 'gcr.io/cloud-builders/npm'
# args: ['run', 'generate']
# dir: 'public'
# # deploy just the hosting part
# - name: 'gcr.io/$PROJECT_ID/firebase'
# args: ['deploy', '--only', 'hosting']