-
Notifications
You must be signed in to change notification settings - Fork 17
/
cloudbuild.yaml
28 lines (27 loc) · 1.14 KB
/
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
# In this directory, run the following command to build this builder.
# $ gcloud container builds submit . --config=cloudbuild.yaml
steps:
- name: 'ubuntu'
id: 'configure'
args: ['bash', './build_nginx_suite.sh']
env:
- 'BUILD_NAMESPACE=gcr.io/$PROJECT_ID'
- 'BUILD_SOURCE_NAMESPACE=gcr.io/$PROJECT_ID'
- 'BUILD_DO_BUILD=0'
- name: 'gcr.io/cloud-builders/docker'
id: 'nginx'
args: ['build', '--tag=gcr.io/$PROJECT_ID/nginx', './nginx']
waitFor: ['configure']
- name: 'gcr.io/cloud-builders/docker'
id: 'nginx-pagespeed'
args: ['build', '--tag=gcr.io/$PROJECT_ID/nginx-pagespeed', './nginx-pagespeed']
waitFor: ['configure']
- name: 'gcr.io/cloud-builders/docker'
id: 'nginx-php-exim'
args: ['build', '--tag=gcr.io/$PROJECT_ID/nginx-php-exim', './nginx-php-exim']
waitFor: ['nginx-pagespeed']
- name: 'gcr.io/cloud-builders/docker'
id: 'wordpress'
args: ['build', '--tag=gcr.io/$PROJECT_ID/wordpress', './wordpress']
waitFor: ['nginx-php-exim']
images: ['gcr.io/$PROJECT_ID/nginx', 'gcr.io/$PROJECT_ID/nginx-pagespeed', 'gcr.io/$PROJECT_ID/nginx-php-exim', 'gcr.io/$PROJECT_ID/wordpress', 'gcr.io/$PROJECT_ID/wordpress-stateless']