forked from leaf-ai/studio-go-runner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ci_containerize.yaml
38 lines (38 loc) · 1.01 KB
/
ci_containerize.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
37
38
apiVersion: batch/v1
kind: Job
metadata:
name: imagebuilder
namespace: {{ .Namespace }}
spec:
template:
spec:
restartPolicy: Never
containers:
- name: makisu
image: gcr.io/uber-container-tools/makisu:v0.1.17
imagePullPolicy: IfNotPresent
args:
- build
- --push=quay.io
- --modifyfs=true
- -t=leafai/studio-go-runner:{{.duat.version}}
- -f=Dockerfile_microk8s
- --registry-config=/registry-config/registry.yaml
- /makisu-context
volumeMounts:
- name: context
mountPath: /makisu-context
- name: registry-config
mountPath: /registry-config
- name: storage
mountPath: /makisu-storage
volumes:
- name: context
persistentVolumeClaim:
# Name of the PVC created earlier
claimName: build-pv-claim
- name: registry-config
secret:
secretName: docker-registry-config
- name: storage
emptyDir: {}