diff options
Diffstat (limited to 'data.d/k3s-master/manifests.d/tyilnet/cicd-system/resources/workflow-templates/util-raku.yaml')
-rw-r--r-- | data.d/k3s-master/manifests.d/tyilnet/cicd-system/resources/workflow-templates/util-raku.yaml | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/data.d/k3s-master/manifests.d/tyilnet/cicd-system/resources/workflow-templates/util-raku.yaml b/data.d/k3s-master/manifests.d/tyilnet/cicd-system/resources/workflow-templates/util-raku.yaml new file mode 100644 index 0000000..cf6282b --- /dev/null +++ b/data.d/k3s-master/manifests.d/tyilnet/cicd-system/resources/workflow-templates/util-raku.yaml @@ -0,0 +1,91 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: WorkflowTemplate +metadata: + name: util-raku + namespace: cicd-system +spec: + templates: + - name: dist-fez + inputs: + parameters: + - name: workingDir + value: "/work" + - name: workingPVC + value: "" + script: + image: rakudo-star + command: + - sh + source: | + cd -- "{{inputs.parameters.workingDir}}" + + set -x + + apt update && apt install -y expect + zef install fez --exclude="z" + + expect <<-EOF + set timeout 30 + + spawn fez login + + expect ">>= Username*" { + send -- "tyil\r" + } + + expect ">>= Password*" { + send -- "gvo8xeORGDmm1ktqJPqHG86987L46vuE94Mw1LEu4rUZc5s9siYhnq5sXDC4\r" + } + + expect eof + EOF + + printf "\n" + + expect <<-EOF + set timeout 60 + + spawn fez upload + + expect { + "Upload anyway*" { + send -- "n\r" + } + eof { } + } + EOF + volumeMounts: + - name: workdir + mountPath: "{{inputs.parameters.workingDir}}" + volumes: + - name: workdir + persistentVolumeClaim: + claimName: "{{inputs.parameters.workingPVC}}" + + - name: prove + inputs: + parameters: + - name: workingDir + value: "/work" + - name: workingPVC + value: "" + script: + image: rakudo-star + command: + - sh + source: | + cd -- "{{inputs.parameters.workingDir}}" + + set -x + + zef install . --deps-only + prove6 -lv --timer + volumeMounts: + - name: workdir + mountPath: "{{inputs.parameters.workingDir}}" + volumes: + - name: workdir + persistentVolumeClaim: + claimName: "{{inputs.parameters.workingPVC}}" +... |