fix certbot renew not updating prod certs
This commit is contained in:
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
5
.idea/codeStyles/codeStyleConfig.xml
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
<component name="ProjectCodeStyleConfiguration">
|
||||
<state>
|
||||
<option name="PREFERRED_PROJECT_CODE_STYLE" value="PSR2" />
|
||||
</state>
|
||||
</component>
|
||||
@@ -19,4 +19,4 @@ export DOCKER_HOST=${DOCKER_HOST:-'dkhost:2376'}
|
||||
# shellcheck disable=SC2068
|
||||
docker-compose \
|
||||
-f docker-compose.tools.yml \
|
||||
run certificates
|
||||
run --rm certificates
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
LETSENCRYPT_IMAGE=dkregistry.xai-corp.net:5000/xaicorp/acme-certbot
|
||||
@@ -23,6 +22,8 @@ update() {
|
||||
export LETSENCRYPT_IMAGE
|
||||
export CERT_NAME
|
||||
|
||||
echo "Updating ${ENVIRONMENT}"
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
docker-compose \
|
||||
-f docker-compose.tools.yml \
|
||||
|
||||
@@ -29,7 +29,7 @@ pipeline {
|
||||
dir(WORKDIR) {
|
||||
withDockerRegistry(credentialsId: 'b11d7f1a-81ac-4daf-8842-56afc0d2370e', url: 'http://dkregistry.xai-corp.net:5000') {
|
||||
sh "pwd"
|
||||
sh "xai certbot renew"
|
||||
sh "xai certbot renew -p"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user