softplayer-helmfile/charts/tekton-pipelines/templates/tasks/cleanup-dns-records.yml
2024-05-08 17:38:52 +02:00

28 lines
714 B
YAML

---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: cleanup-dns-records
namespace: {{ .Values.pipelineNamespace }}
labels:
{{- include "tekton-pipelines.labels" . | nindent 4 }}
spec:
params:
- name: namespace
type: string
- name: environment
type: string
steps:
- name: setup-dns
image: git.badhouseplants.net/softplayer/softplayer-coskgne:latest
env:
- name: SP_STATE
value: absent
- name: SP_ENV
value: $(params.environment)
- name: SOPS_AGE_KEY
value: {{ .Values.providers.hetzner.ageKey }}
script: |-
#!/bin/sh
ansible-playbook /src/playbooks/other/cloudflare/playbook.yml