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

3
lets-encrypt:
4
  stage: deploy
5 6 7
  image: python:3.6
  script:
    - pip install certbot-dns-rfc2136
8 9 10
    - umask 0077
    - for i in dns_rfc2136_server dns_rfc2136_port dns_rfc2136_name dns_rfc2136_secret dns_rfc2136_algorithm; do echo "$i = ${!i}" | tee -a /rfc2136.ini; done
    - cat /rfc2136.ini
Nicholas J Anderson's avatar
Nicholas J Anderson committed
11
    - 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
12 13
  when: manual

Douwe Maan's avatar
Douwe Maan committed
14 15 16
pages:
  stage: deploy
  script:
17
  - echo 'Nothing to do...'
Douwe Maan's avatar
Douwe Maan committed
18 19 20 21
  artifacts:
    paths:
    - public
  only:
22
  - master