This repository has been archived on 2025-12-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
garm-test-pipeline/argo-workflows/templates/git-clone-template.yaml
2024-11-08 12:37:54 +01:00

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