Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task/WI-202: insert letsencrypt post-renewal hook after deploy #58

Merged
merged 3 commits into from
Mar 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update makefile
jarosenb committed Feb 28, 2025
commit 6aaad560f095657b6f2fac0982b1039187e4479a
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ endif
DOCKER_COMPOSE := ${COMPOSE_COMMAND} ${BASE_COMPOSE} ${COMPOSE} --env-file=$(pwd)/$(ENV_FILE)

# This command uses an Alpine linux image to run a script to add a post-renew hook to letsencrypt
CERT_SCRIPT_COMMAND := docker run -e DOCKER_COMPOSE=${DOCKER_COMPOSE} -v /etc/letsencrypt:/etc/letsencrypt -v ${CAMINO_HOME}/conf/scripts/post-renew.sh:/opt-post-renew.sh alpine:3 /bin/sh -c "chmod +x /opt/post-renew.sh && /opt/post-renew.sh"
PLACE_RENEWAL_HOOK := docker run -e DOCKER_COMPOSE=${DOCKER_COMPOSE} -v /etc/letsencrypt:/etc/letsencrypt -v ${CAMINO_HOME}/conf/scripts/post-renew.sh:/opt-post-renew.sh alpine:3 /bin/sh -c "chmod +x /opt/post-renew.sh && /opt/post-renew.sh"

.PHONY: deploy-docs
deploy-docs:
@@ -79,7 +79,7 @@ ifdef POST_DEPLOY_SCRIPT
chmod +x ${CAMINO_HOME}/conf/camino/${POST_DEPLOY_SCRIPT} && ${CAMINO_HOME}/conf/camino/${POST_DEPLOY_SCRIPT} all
endif
$(DOCKER_COMPOSE) restart nginx
$(CERT_SCRIPT_COMMAND)
$(PLACE_RENEWAL_HOOK)

.PHONY: migrate
migrate: