forked from jupyterhub/repo2docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
36 lines (33 loc) · 1003 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
32
33
34
35
36
# [START cloudbuild]
steps:
# Decrypt service account credentials file
# - name: gcr.io/cloud-builders/gcloud
# args:
# - kms
# - decrypt
# - --ciphertext-file=secrets/apt-phenomenon-243802-bbe918a2d411.json.enc
# - --plaintext-file=secrets/apt-phenomenon-243802-bbe918a2d411.json
# - --location=global
# - --keyring=notebook-keyring
# - --key=notebook-key
# This step builds the container image.
# 'gcr.io/$PROJECT_ID/europa-client:$SHORT_SHA' to tag with commit id
- name: 'gcr.io/cloud-builders/docker'
id: Build
args:
- 'build'
- '-t'
- 'localhost:5000/repo2docker-garden:0.0.21'
- '--no-cache'
- '.'
# This step pushes the image to Container Registry
# The PROJECT_ID and SHORT_SHA variables are automatically
# replaced by Cloud Build.
# 'gcr.io/$PROJECT_ID/europa-client:$SHORT_SHA' to tag with commit id
- name: 'gcr.io/cloud-builders/docker'
id: Push
args:
- 'push'
- 'localhost:5000/repo2docker-garden:0.0.21'
timeout: 1800s # 30 min
# [END cloudbuild]