2022-01-08 17:57:05 +01:00
|
|
|
---
|
2022-01-08 17:39:38 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
2022-01-08 18:49:30 +01:00
|
|
|
image_pull_secrets:
|
|
|
|
- IMAGE_PULL_SECRET
|
|
|
|
|
2022-01-08 17:39:38 +01:00
|
|
|
steps:
|
|
|
|
- name: Validate configuration and check changes
|
2022-01-08 18:49:30 +01:00
|
|
|
image: registry.kmlabz.com/stargate-cluster/dnscontrol-docker
|
|
|
|
pull: always
|
2022-01-08 19:07:01 +01:00
|
|
|
environment:
|
|
|
|
HE_USERNAME:
|
|
|
|
from_secret: HE_USERNAME
|
|
|
|
HE_PASSWORD:
|
|
|
|
from_secret: HE_PASSWORD
|
|
|
|
HE_TOTPKEY:
|
|
|
|
from_secret: HE_TOTPKEY
|
|
|
|
CF_APITOKEN:
|
|
|
|
from_secret: CF_APITOKEN
|
|
|
|
CF_ACCOUNTID:
|
|
|
|
from_secret: CF_ACCOUNTID
|
2022-01-08 17:39:38 +01:00
|
|
|
commands:
|
|
|
|
- dnscontrol preview
|
|
|
|
|
|
|
|
- name: Push new configuration to providers
|
2022-01-08 18:49:30 +01:00
|
|
|
image: registry.kmlabz.com/stargate-cluster/dnscontrol-docker
|
|
|
|
pull: always
|
2022-01-08 19:07:37 +01:00
|
|
|
environment:
|
|
|
|
HE_USERNAME:
|
|
|
|
from_secret: HE_USERNAME
|
|
|
|
HE_PASSWORD:
|
|
|
|
from_secret: HE_PASSWORD
|
|
|
|
HE_TOTPKEY:
|
|
|
|
from_secret: HE_TOTPKEY
|
|
|
|
CF_APITOKEN:
|
|
|
|
from_secret: CF_APITOKEN
|
|
|
|
CF_ACCOUNTID:
|
|
|
|
from_secret: CF_ACCOUNTID
|
2022-01-08 17:39:38 +01:00
|
|
|
commands:
|
2022-01-08 19:17:00 +01:00
|
|
|
- sleep 60
|
2022-01-08 17:39:38 +01:00
|
|
|
- dnscontrol push
|