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

3
lets-encrypt:
4
  stage: deploy
5
  image: certbot/dns-rfc2136
6
  script:
7
    - umask 0077
8 9 10 11 12 13 14 15 16 17 18 19 20 21
    - >
      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
    - >
      certbot certonly \
      --agree-tos \
      --non-interactive \
      --email nander13@gmu.edu \
      --dry-run \
      --dns-rfc2136 \
      --dns-rfc2136-credentials /rfc2136.ini \
      -d nic-a.net \
      --preferred-challenges dns-01
22 23
  when: manual

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