forked from wildfish/google-cloud-container-builder-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
46 lines (37 loc) · 900 Bytes
/
cloudbuild.yaml
File metadata and controls
46 lines (37 loc) · 900 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
36
37
38
39
40
41
42
43
44
45
46
steps:
#
# Building
#
- id: build-builder
name: gcr.io/cloud-builders/docker
args: ['build', '--rm=false', '-t', 'eu.gcr.io/$PROJECT_ID/gckb-example-builder', '-f', 'Dockerfile.builder', '.']
- id: build
name: eu.gcr.io/$PROJECT_ID/gckb-example-builder
args: ['./scripts/build.sh']
waitFor:
- build-builder
#
# Testing
#
- id: lint
name: eu.gcr.io/$PROJECT_ID/gckb-example-builder
args: ['./scripts/lint.sh']
waitFor:
- build-builder
- id: run-tests
name: eu.gcr.io/$PROJECT_ID/gckb-example-builder
args: ['./scripts/test.sh']
waitFor:
- build
#
# Deploying
#
- id: deploy
name: eu.gcr.io/$PROJECT_ID/gckb-example-builder
args: ['./scripts/deploy.sh $COMMIT_SHA']
env:
- PROJECT_ID=$PROJECT_ID
- CREDS_BUCKET_NAME=gckb-example-creds
waitFor:
- run-tests
- lint