Skip to content

PYIC-8099 Add GitHub action to deploy journey map using secure pipelines #3140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/journey-map.yml
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems quite hard to test this without just giving it a go...

Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,46 @@
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

deploy-aws:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
AWS_REGION: eu-west-2
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up AWS creds
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.GH_ACTIONS_ROLE_ARN_JOURNEY_MAP }}
aws-region: eu-west-2

- name: Set up esbuild
run: curl -fsSL https://esbuild.github.io/dl/latest | sh

- name: Add esbuild to path
run: echo "${GITHUB_WORKSPACE}" >> $GITHUB_PATH

Check warning on line 71 in .github/workflows/journey-map.yml

View workflow job for this annotation

GitHub Actions / lint

[actionlint] reported by reviewdog 🐶 shellcheck reported issue in this script: SC2086:info:1:31: Double quote to prevent globbing and word splitting [shellcheck] Raw Output: i:.github/workflows/journey-map.yml:71:9: shellcheck reported issue in this script: SC2086:info:1:31: Double quote to prevent globbing and word splitting [shellcheck]

- name: Set up SAM cli
uses: aws-actions/setup-sam@v2

- name: SAM Validate
working-directory: ./journey-map/deploy
run: sam validate --region ${{ env.AWS_REGION }}

- name: SAM build and test
working-directory: ./journey-map/deploy
run: sam build

- name: Deploy SAM app
uses: govuk-one-login/[email protected]
with:
artifact-bucket-name: ${{ secrets.ARTIFACT_BUCKET_NAME_JOURNEY_MAP }}
signing-profile-name: ${{ secrets.SIGNING_PROFILE_NAME }}
working-directory: ./journey-map/deploy
template-file: .aws-sam/build/template.yaml