let gitlab-runner restart caddy service.
This commit is contained in:
parent
48817d4c08
commit
68e7d6091a
1 changed files with 3 additions and 2 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue