Skip to content

Merge pull request #137 from govuk-one-login/PSREDEV-1911-dev-platfor… #160

Merge pull request #137 from govuk-one-login/PSREDEV-1911-dev-platfor…

Merge pull request #137 from govuk-one-login/PSREDEV-1911-dev-platfor… #160

name: Deploy to Dev
on:
push:
branches:
- main
workflow_dispatch: # deploy manually
jobs:
deploy:
name: Deploy to dev
runs-on: ubuntu-latest
timeout-minutes: 15
env:
AWS_REGION: eu-west-2
ENVIRONMENT: dev
permissions:
id-token: write
contents: read
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Assume temporary AWS role
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.DEV_GH_ACTIONS_ROLE_ARN }}
aws-region: ${{ env.AWS_REGION }}
- name: SAM Validate
run: sam validate --region ${{ env.AWS_REGION }} -t infrastructure/template.yaml --lint
- name: SAM build
run: |
mkdir out
sam build -t infrastructure/template.yaml -b out/
- name: Deploy SAM app
uses: govuk-one-login/[email protected]
with:
artifact-bucket-name: "${{ secrets.DEV_ARTIFACT_SOURCE_BUCKET_NAME }}"
signing-profile-name: "${{ secrets.DEV_SIGNING_PROFILE_NAME }}"
working-directory: ./out