Start kaniko test

This commit is contained in:
Nico Schottelius 2021-12-04 14:08:21 +01:00
parent f49a511578
commit a76a8d79c4
1 changed files with 28 additions and 0 deletions

28
generic/kaniko-build.yaml Normal file
View File

@ -0,0 +1,28 @@
apiVersion: v1
kind: Pod
metadata:
name: kaniko
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:latest
args:
- "--dockerfile=/workspace/dockerfile"
- "--context=dir://workspace"
- "--destination=<user-name>/<repo>"
# volumeMounts:
# - name: kaniko-secret
# mountPath: /kaniko/.docker
# - name: dockerfile-storage
# mountPath: /workspace
# restartPolicy: Never
# volumes:
# - name: kaniko-secret
# secret:
# secretName: regcred
# items:
# - key: .dockerconfigjson
# path: config.json
# - name: dockerfile-storage
# persistentVolumeClaim:
# claimName: dockerfile-claim