From 6896d77b54b8e5c80f14cd76eddc0a3599f9e826 Mon Sep 17 00:00:00 2001 From: Xavier Metichecchia Date: Tue, 8 Oct 2024 10:24:21 -0400 Subject: [PATCH] PXBF-dev: Add step in deploy pipe to add lines to redirects in usagov submod 14 --- .github/workflows/build-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 15229717c..8fd07eb79 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -139,9 +139,9 @@ jobs: git checkout prod - name: run: | - sed -i '1a\\' ./usagov-2021/.docker/src-waf/etc/nginx/snippets/domain-rewrites-benefits-tool.conf sed -i '/# Rewrites for requests for Host: benefits-tool.usa.gov/ a\ rewrite ^/benefit-finder/([^/]+)/[^/]+$ /benefit-finder/$1 permanent;\n rewrite ^/espanol/benefit-finder/([^/]+)/[^/]+$ /espanol/benefit-finder/$1 permanent;' ./usagov-2021/.docker/src-waf/etc/nginx/snippets/domain-rewrites-benefits-tool.conf sed -i '/^ rewrite ^\/espanol\/benefit-finder\/([^\/]+)\/[^\/]+$/N;s/\n$//' ./usagov-2021/.docker/src-waf/etc/nginx/snippets/domain-rewrites-benefits-tool.conf + sed -i '1a\\' ./usagov-2021/.docker/src-waf/etc/nginx/snippets/domain-rewrites-benefits-tool.conf cat ./usagov-2021/.docker/src-waf/etc/nginx/snippets/domain-rewrites-benefits-tool.conf - name: Merge files into module run: |