26 lines
734 B
YAML
26 lines
734 B
YAML
{{- define "common.task-copy-shared-utilities" }}
|
|
{{- $common := dict "Values" .Values.common -}}
|
|
{{- $noCommon := omit .Values "common" -}}
|
|
{{- $overrides := dict "Values" $noCommon -}}
|
|
{{- $noValues := omit . "Values" -}}
|
|
{{- with merge $noValues $overrides $common -}}
|
|
apiVersion: tekton.dev/v1
|
|
kind: Task
|
|
metadata:
|
|
name: copy-shared-utilities
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
steps:
|
|
- image: {{ .Values.quayHostname }}/goghvideo/rockylinux:9-ubi
|
|
name: copy-shared-utilities
|
|
script: |
|
|
#!/usr/bin/env bash
|
|
curl -O https://nextcloud.endofday.com/s/TXMc8z3Xjxci5fY/download/yq
|
|
chmod +x yq
|
|
workingDir: $(workspaces.utilities.path)
|
|
workspaces:
|
|
- name: utilities
|
|
{{- end }}
|
|
{{- end }}
|
|
|