fix(deploy): improve Caddyfile check for windwiderstand domain
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user