let gitlab-runner restart caddy service.

This commit is contained in:
Russell Ballestrini 2025-01-22 10:56:30 +00:00
parent 48817d4c08
commit 68e7d6091a

View file

@ -116,8 +116,9 @@ deploy:
# Validate the Caddyfile
caddy validate --config "${CADDYFILE_DIR}/Caddyfile"
# Step 8: Reload Caddy service
- touch ~/reload_caddy # Assuming a trigger file is used to reload Caddy
# Step 8: Reload Caddy service, gitlab-runner is in sudoers.
# gitlab-runner ALL=(ALL) NOPASSWD: /bin/systemctl * caddy.service
- sudo /bin/systemctl restart caddy.service
# Deployment completed
- echo "Deployment completed successfully."