.gitlab-ci.yml 693 Bytes
Newer Older
1 2
image: alpine:latest

3
lets-encrypt:
4
  stage: deploy
5
  image: python:3.6
6
  script:
7
    - pip install certbot-dns-rfc2136
8
    - umask 0077
9 10 11 12 13
    - >
      for i in dns_rfc2136_server dns_rfc2136_port dns_rfc2136_name dns_rfc2136_secret dns_rfc2136_algorithm;
        do echo "$i = ${!i}" >> /rfc2136.ini;
      done
    - >
14 15 16 17 18 19 20 21
      certbot certonly 
      --agree-tos 
      --non-interactive 
      --email nander13@gmu.edu 
      --dry-run 
      --dns-rfc2136 
      --dns-rfc2136-credentials /rfc2136.ini 
      -d nic-a.net 
22
      --preferred-challenges dns-01
23 24
  when: manual

Douwe Maan's avatar
Douwe Maan committed
25 26 27
pages:
  stage: deploy
  script:
28
  - echo 'Nothing to do...'
Douwe Maan's avatar
Douwe Maan committed
29 30 31 32
  artifacts:
    paths:
    - public
  only:
33
  - master