26 lines
No EOL
622 B
YAML
26 lines
No EOL
622 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ClusterWorkflowTemplate
|
|
metadata:
|
|
name: git-clone-template
|
|
spec:
|
|
entrypoint: git-clone
|
|
templates:
|
|
- name: git-clone
|
|
inputs:
|
|
parameters:
|
|
- name: git-repo
|
|
container:
|
|
image: ubuntu:24.10
|
|
command: [sh, -c]
|
|
args:
|
|
- |
|
|
set -e
|
|
|
|
apt update
|
|
apt install -y git
|
|
git clone -b main {{inputs.parameters.git-repo}} /shared-data/repo
|
|
|
|
echo git-clone task completed
|
|
volumeMounts:
|
|
- name: shared-data
|
|
mountPath: /shared-data |