--- kind: pipeline type: exec name: dnscontrol steps: - name: preview environment: PDNS_API_KEY: from_secret: PDNS_API_KEY CLOUDFLARE_API_KEY: from_secret: CLOUDFLARE_API_KEY commands: - dnscontrol preview - name: push environment: PDNS_API_KEY: from_secret: PDNS_API_KEY CLOUDFLARE_API_KEY: from_secret: CLOUDFLARE_API_KEY commands: - dnscontrol push when: event: promote