Skip to content

Merge pull request #524 from govuk-one-login/idsre-to-rex #181

Merge pull request #524 from govuk-one-login/idsre-to-rex

Merge pull request #524 from govuk-one-login/idsre-to-rex #181

name: Push test Docker image
on:
push:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
push-image:
name: Push image
runs-on: ubuntu-latest
environment: ${{ matrix.environment }}
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
matrix:
environment: [development, build]
concurrency:
group: push-tests-image-${{ matrix.environment }}
cancel-in-progress: true
steps:
- name: Push test Docker image
uses: govuk-one-login/github-actions/aws/ecr/build-docker-image@c8eefadf581d2087ce2af48b7060c1329cfa5251
if: ${{ github.ref_name == 'main' || matrix.environment == 'development' }}
with:
immutable-tags: false
image-version: ${{ github.sha }}
aws-role-arn: ${{ vars.DEPLOYMENT_ROLE_ARN }}
repository: ${{ vars.IMAGE_REPOSITORY }}
dockerfile: test/browser/post-merge.Dockerfile
image-tags: |
${{ github.head_ref || github.ref_name }}-${{ github.sha }}
${{ github.head_ref || github.ref_name }}
check-hmrc-tests-${{ github.sha }}
latest