Skip to content

Commit

Permalink
PXBF-dev: Add step in deploy pipe to add lines to redirects in usagov…
Browse files Browse the repository at this point in the history
… submod 14
  • Loading branch information
Xavier Metichecchia authored and Xavier Metichecchia committed Oct 8, 2024
1 parent 0e257c7 commit 6896d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 6896d77

Please sign in to comment.