.gitlab-ci.yml 512 Bytes
Newer Older
1 2 3 4 5 6 7
stages:
  - test
  - deploy-prod
  
whitelist:
  stage: deploy-prod
  script: 
8
    - echo "Run whitelist.sh"
9
    - ./whitelistme.sh
10 11 12
  only:
    refs:
      - master
13 14
    changes:
      - whitelistme.sh
15
  tags:
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
    - prod
    
local-DNS:
  stage: deploy-prod
  script: 
    - echo "Copy localDNS to /etc/pihole/local.list"
    - sudo cp ./localDNS /etc/pihole/local.list
    - echo "Restart PiHole DNS"
    - pihole restartdns
  only:
    refs:
      - master
    changes:
      - localDNS
  tags:
    - prod