Skip to content

Merge pull request #521 from govuk-one-login/chore/fix-quality-gate-m… #376

Merge pull request #521 from govuk-one-login/chore/fix-quality-gate-m…

Merge pull request #521 from govuk-one-login/chore/fix-quality-gate-m… #376

name: DEV Post merge, deploy Docker build, ECR push, template copy to S3
on:
push:
branches:
- main
workflow_dispatch: # Deploy Manually
jobs:
development:
runs-on: ubuntu-latest
name: Dev docker build and push
env:
AWS_REGION: eu-west-2
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Login to GDS Dev Dynatrace Container Registry
uses: docker/login-action@v3
with:
registry: khw46367.live.dynatrace.com
username: khw46367
password: ${{ secrets.DYNATRACE_PAAS_TOKEN }}
- name: SAM Validate
run: sam validate --region ${{ env.AWS_REGION }} -t deploy/template.yaml
- name: "Push signed image to ECR, updated SAM template with image then upload it to the S3 Artifact Bucket"
uses: govuk-one-login/devplatform-upload-action-ecr@v1.4.0
with:
artifact-bucket-name: ${{ secrets.DEV_ARTIFACT_BUCKET_NAME }}
container-sign-kms-key-arn: ${{ secrets.DEV_CONTAINER_SIGN_KMS_KEY }}
template-file: deploy/template.yaml
dockerfile: Dockerfile
role-to-assume-arn: ${{ secrets.DEV_GH_ACTIONS_ROLE_ARN }}
ecr-repo-name: ${{ secrets.DEV_ECR_NAME_FRONT }}