Skip to content

Instantly share code, notes, and snippets.

@jamesmorrison
Created April 14, 2020 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmorrison/167928721593e692fff1e387ad8fcce7 to your computer and use it in GitHub Desktop.
Save jamesmorrison/167928721593e692fff1e387ad8fcce7 to your computer and use it in GitHub Desktop.
Gitlab CI configuration for DNSControl
##### Define the stages for this pipeline
stages:
- check
- preview
- deploy
##### Check
Check:
stage: check
image: stackexchange/dnscontrol
script:
- dnscontrol check
when: always
##### Preview
Preview:
stage: preview
image: stackexchange/dnscontrol
script:
- dnscontrol preview
allow_failure: false
# Deploy
Deploy:
stage: deploy
image: stackexchange/dnscontrol
script:
- dnscontrol push
only:
- master
when: manual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment