adds ci templates
This commit is contained in:
parent
3f09ced219
commit
6a88aeb484
10 changed files with 243 additions and 221 deletions
26
argo-workflows/templates/git-clone-template.yaml
Normal file
26
argo-workflows/templates/git-clone-template.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
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
|
||||
Reference in a new issue