Deploy preview [bau-faster-integration-tests] #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Preview | |
run-name: Deploy preview [${{ github.head_ref || github.ref_name }}] | |
on: | |
push: | |
branches: [bau-faster-integration-tests] | |
workflow_dispatch: | |
workflow_call: | |
outputs: | |
stack-name: | |
description: The deployed stack name | |
value: ${{ jobs.deploy.outputs.stack-name }} | |
permissions: | |
id-token: write | |
contents: read | |
concurrency: deploy-development-${{ github.head_ref || github.ref_name }} | |
jobs: | |
build: | |
name: Build SAM app | |
runs-on: ubuntu-latest | |
permissions: {} | |
outputs: | |
artifact-name: ${{ steps.build.outputs.artifact-name }} | |
steps: | |
- name: Build SAM application | |
uses: govuk-one-login/github-actions/sam/build-application@b2b6fc5df355031fd08cef37fa13a93670a45899 | |
id: build | |
with: | |
template: infrastructure/template.yaml | |
artifact-name: pdv-matching | |
cache-key: pdv-matching | |
pull-repository: true | |
deploy: | |
name: Deploy stack | |
runs-on: ubuntu-latest | |
needs: build | |
outputs: | |
stack-name: ${{ steps.deploy.outputs.stack-name }} | |
environment: | |
name: development | |
url: ${{ steps.deploy.outputs.stack-url }} | |
steps: | |
- name: Deploy stack | |
uses: govuk-one-login/github-actions/sam/deploy-stack@bau-sam-deploy-stack-artifact-path | |
id: deploy | |
with: | |
sam-deployment-bucket: ${{ secrets.DEV_PRE_MERGE_ARTIFACT_SOURCE_BUCKET_NAME }} | |
aws-role-arn: ${{ secrets.DEV_PRE_MERGE_GH_ACTIONS_ROLE_ARN }} | |
stack-name-prefix: preview-pdv-matching | |
s3-prefix: pdv-preview | |
pull-repository: true | |
delete-failed-stack: true | |
artifact-path: .aws-sam/build | |
artifact-name: ${{ needs.build.outputs.artifact-name }} | |
tags: | | |
cri:component=check-hmrc-api | |
cri:stack-type=preview | |
cri:application=Orange | |
cri:deployment-source=github-actions | |
parameters: | | |
CodeSigningEnabled=false | |
Environment=dev |