Add GitLab CI/CD configuration
This commit is contained in:
parent
49bd4cfc48
commit
d0c2ed4aac
1 changed files with 14 additions and 0 deletions
14
.gitlab-ci.yml
Normal file
14
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
.dnscontrol:
|
||||
image:
|
||||
name: 'stackexchange/dnscontrol'
|
||||
entrypoint: ['']
|
||||
before_script:
|
||||
- '/usr/local/bin/dnscontrol version'
|
||||
|
||||
dnscontrol-push:
|
||||
extends: '.dnscontrol'
|
||||
stage: 'deploy'
|
||||
script:
|
||||
- '/usr/local/bin/dnscontrol push'
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && ($CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "push")'
|
Loading…
Reference in a new issue