From 3949df31bb2c6fea99970a8d0b962e073867c328 Mon Sep 17 00:00:00 2001 From: Peter Meier Date: Sat, 18 Apr 2026 12:35:07 +0200 Subject: [PATCH] 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. --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 6a60b7f..99aa57f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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