fix certbot renew not updating prod certs

This commit is contained in:
2020-09-06 22:50:17 -04:00
parent 9351caf5b0
commit 77af2eecd0
4 changed files with 9 additions and 3 deletions

5
.idea/codeStyles/codeStyleConfig.xml generated Normal file
View File

@@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="PSR2" />
</state>
</component>

View File

@@ -19,4 +19,4 @@ export DOCKER_HOST=${DOCKER_HOST:-'dkhost:2376'}
# shellcheck disable=SC2068 # shellcheck disable=SC2068
docker-compose \ docker-compose \
-f docker-compose.tools.yml \ -f docker-compose.tools.yml \
run certificates run --rm certificates

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env bash
set -e set -e
LETSENCRYPT_IMAGE=dkregistry.xai-corp.net:5000/xaicorp/acme-certbot LETSENCRYPT_IMAGE=dkregistry.xai-corp.net:5000/xaicorp/acme-certbot
@@ -23,6 +22,8 @@ update() {
export LETSENCRYPT_IMAGE export LETSENCRYPT_IMAGE
export CERT_NAME export CERT_NAME
echo "Updating ${ENVIRONMENT}"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
docker-compose \ docker-compose \
-f docker-compose.tools.yml \ -f docker-compose.tools.yml \

View File

@@ -29,7 +29,7 @@ pipeline {
dir(WORKDIR) { dir(WORKDIR) {
withDockerRegistry(credentialsId: 'b11d7f1a-81ac-4daf-8842-56afc0d2370e', url: 'http://dkregistry.xai-corp.net:5000') { withDockerRegistry(credentialsId: 'b11d7f1a-81ac-4daf-8842-56afc0d2370e', url: 'http://dkregistry.xai-corp.net:5000') {
sh "pwd" sh "pwd"
sh "xai certbot renew" sh "xai certbot renew -p"
} }
} }
} }