28 lines
714 B
YAML
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
|