-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
24 lines (20 loc) · 945 Bytes
/
cloudbuild.yaml
File metadata and controls
24 lines (20 loc) · 945 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
steps:
- name: 'gcr.io/cloud-builders/docker'
id: "Build the container"
args: ["build", "-t", "eu.gcr.io/casehubdk/bazelisk-docker:$SHORT_SHA", "."]
# so the latex variant can catch the name
- name: 'gcr.io/cloud-builders/docker'
id: "Tag the image to cheat the local"
args: ["tag", "eu.gcr.io/casehubdk/bazelisk-docker:$SHORT_SHA", "eu.gcr.io/casehubdk/bazelisk-docker"]
- name: 'gcr.io/cloud-builders/docker'
id: "Push the container"
args: ["push", "eu.gcr.io/casehubdk/bazelisk-docker:$SHORT_SHA"]
- name: 'gcr.io/cloud-builders/docker'
id: "Build the container with latex"
args: ["build", "-t", "eu.gcr.io/casehubdk/bazelisk-docker:latex-$SHORT_SHA", "-f", "Dockerfile.withlatex", "."]
- name: 'gcr.io/cloud-builders/docker'
id: "Push the container with latex"
args: ["push", "eu.gcr.io/casehubdk/bazelisk-docker:latex-$SHORT_SHA"]
options:
machineType: "N1_HIGHCPU_8"
timeout: "900s"