test branch #13
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 | |
on: | |
workflow_dispatch: | |
push: | |
branches: [bau-faster-integration-tests] | |
workflow_call: | |
outputs: | |
stack-name: | |
description: The deployed stack name | |
value: ${{ jobs.deploy.outputs.stack-name }} | |
aws-region: | |
description: The region in which the stack was deployed | |
value: ${{ jobs.deploy.outputs.aws-region }} | |
permissions: | |
id-token: write | |
contents: read | |
concurrency: | |
group: deploy-development-${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: false | |
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 | |
timeout-minutes: 15 | |
needs: build | |
environment: | |
name: development | |
url: ${{ steps.deploy.outputs.stack-url }} | |
outputs: | |
aws-region: ${{ steps.deploy.outputs.aws-region }} | |
stack-name: ${{ steps.deploy.outputs.stack-name }} | |
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: ${{ vars.DEPLOYMENT_ARTIFACTS_BUCKET }} | |
aws-role-arn: ${{ vars.DEPLOYMENT_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 |