fibonacci_pipeline/argo-workflows/templates/build-and-push-image-template.yaml
2024-11-08 12:37:54 +01:00

26 lines
No EOL
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/