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 17
  • Loading branch information
Xavier Metichecchia authored and Xavier Metichecchia committed Oct 8, 2024
1 parent 679ee27 commit 491afcf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ jobs:
git checkout prod
- name: Routing Testing
run: |
sed -i '/# Individual PERMANENT redirects (all exact match):/a rewrite ^/benefit-finder/([^/]+)/[^/]+$ /benefit-finder/$1 permanent;\rewrite ^/espanol/benefit-finder/([^/]+)/[^/]+$ /espanol/benefit-finder/$1 permanent;' ./usagov-2021/.docker/src-www/etc/nginx/partials/internal_redirects.conf
sed -i '/# Individual PERMANENT redirects (all exact match):/!b;n;:a;n;/^rewrite/s/^rewrite \\^\\/benefit-finder/\\/benefit-finder rewrite \\^\\/benefit-finder/;ta' ./usagov-2021/.docker/src-www/etc/nginx/partials/internal_redirects.conf
sed -i '/# Individual PERMANENT redirects (all exact match):/a rewrite ^\/\*\*\*\/([^\/]+)\/[^\/]+$ \/\/\*\*\*\/$1 permanent;\nrewrite ^\/espanol\/\*\*\*\/([^\/]+)\/[^\/]+$ \/espanol\/\*\*\*\/$1 permanent;' ./usagov-2021/.docker/src-www/etc/nginx/partials/internal_redirects.conf
cat ./usagov-2021/.docker/src-www/etc/nginx/partials/internal_redirects.conf
- name: Merge files into module
run: |
Expand Down

0 comments on commit 491afcf

Please sign in to comment.