fix(deploy): improve Caddyfile check for windwiderstand domain
Deploy / verify (push) Successful in 39s
Deploy / deploy (push) Successful in 56s

- Updated the grep command in the deployment workflow to use a regex pattern for better matching of the windwiderstand.de domain in the Caddyfile.
- This change ensures that the domain is correctly identified even with variations in whitespace or formatting.
This commit is contained in:
Peter Meier
2026-04-18 12:35:07 +02:00
parent b08c64eb38
commit 3949df31bb
+1 -1
View File
@@ -95,7 +95,7 @@ jobs:
- name: Caddy site block + reload
run: |
ssh vserver 'grep -q "^windwiderstand.de {" /opt/caddy/extra-config/Caddyfile || printf "\nwindwiderstand.de {\n reverse_proxy windwiderstand:3001\n}\n\nwww.windwiderstand.de {\n redir https://windwiderstand.de{uri} permanent\n}\n" >> /opt/caddy/extra-config/Caddyfile'
ssh vserver 'grep -qE "^windwiderstand\.de[[:space:],{]" /opt/caddy/extra-config/Caddyfile || printf "\nwindwiderstand.de {\n reverse_proxy windwiderstand:3001\n}\n\nwww.windwiderstand.de {\n redir https://windwiderstand.de{uri} permanent\n}\n" >> /opt/caddy/extra-config/Caddyfile'
ssh vserver "docker exec caddy caddy reload --config /extra-config/Caddyfile"
- name: Cleanup