Add GitLab CI/CD configuration

This commit is contained in:
Ketan Vijayvargiya 2023-12-27 20:47:43 -08:00
parent 49bd4cfc48
commit d0c2ed4aac
1 changed files with 14 additions and 0 deletions

14
.gitlab-ci.yml Normal file
View 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")'