Commit 54197201 authored by Nicholas J Anderson's avatar Nicholas J Anderson

Now do it for real!

parent 010db4cd
Pipeline #2582 passed with stage
in 1 minute and 49 seconds
......@@ -3,6 +3,8 @@ image: alpine:latest
lets-encrypt:
stage: deploy
image: python:3.6
variables:
DOMAIN: nic-a.net
script:
- pip install certbot-dns-rfc2136
- umask 0077
......@@ -15,11 +17,17 @@ lets-encrypt:
--agree-tos
--non-interactive
--email nander13@gmu.edu
--dry-run
--dns-rfc2136
--dns-rfc2136-credentials /rfc2136.ini
-d nic-a.net
-d $DOMAIN
--preferred-challenges dns-01
- >
curl
--request PUT
--header "PRIVATE-TOKEN: $GITLAB_TOKEN"
--form "certificate=@/etc/letsencrypt/live/$DOMAIN/fullchain.pem"
--form "key=@/etc/letsencrypt/live/$DOMAIN/privkey.pem"
https://git.gmu.edu/api/v4/projects/$CI_PROJECT_ID/pages/domains/$DOMAIN
when: manual
pages:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment