26 lines
751 B
YAML
26 lines
751 B
YAML
|
apiVersion: argoproj.io/v1alpha1
|
||
|
kind: ClusterWorkflowTemplate
|
||
|
metadata:
|
||
|
name: build-and-push-image-template
|
||
|
spec:
|
||
|
entrypoint: build
|
||
|
templates:
|
||
|
- name: build
|
||
|
inputs:
|
||
|
parameters:
|
||
|
- name: dockerfile-name
|
||
|
- name: image-destination
|
||
|
container:
|
||
|
image: gcr.io/kaniko-project/executor:v1.23.2
|
||
|
args:
|
||
|
[
|
||
|
"--dockerfile={{inputs.parameters.dockerfile-name}}",
|
||
|
"--context=/shared-data/repo/",
|
||
|
"--destination={{inputs.parameters.image-destination}}",
|
||
|
"--skip-tls-verify"
|
||
|
]
|
||
|
volumeMounts:
|
||
|
- name: shared-data
|
||
|
mountPath: /shared-data
|
||
|
- name: docker-config
|
||
|
mountPath: /kaniko/.docker/
|