-
Notifications
You must be signed in to change notification settings - Fork 0
/
kaniko.yaml
33 lines (33 loc) · 824 Bytes
/
kaniko.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
---
apiVersion: v1
kind: Pod
metadata:
name: kaniko-<BUILD_ID>
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:latest
args:
- "--dockerfile=<DOCKERFILE>"
- "--context=<CONTEXT>"
- "--destination=<IMAGE_TAG>"
- "--use-new-run"
- "--snapshot-mode=redo"
- "--cache=true"
- "--cache-repo=<CACHE_REPO>"
volumeMounts:
- name: aws-secret
mountPath: /root/.aws/
- name: homelab-registry-secret
mountPath: /kaniko/.docker/
#env:
# - name: AWS_REGION
# value: ap-southeast-1
restartPolicy: Never
volumes:
- name: aws-secret
secret:
secretName: aws-secret
- name: homelab-registry-secret
secret:
secretName: homelab-registry-secret