Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
theseanything committed Jul 10, 2024
1 parent 130b19e commit 3411c10
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/build_diff_gen_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,12 @@ on:
paths:
- "diff-generator/*"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.AWS_GOVUK_ECR_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_GOVUK_ECR_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- uses: aws-actions/amazon-ecr-login@v1
id: ecr
- name: Build and push image
env:
DOCKER_BUILDKIT: "1"
ECR_REGISTRY: ${{ steps.ecr.outputs.registry }}
run: |
IMAGE_URI="${ECR_REGISTRY}/govuk-fastly-diff-generator:latest"
cd diff-generator
docker build . -t "${IMAGE_URI}"
docker push "${IMAGE_URI}"
build-and-publish-image:
name: Build and publish image
uses: alphagov/govuk-infrastructure/.github/workflows/build-and-push-multiarch-image.yml@main
with:
gitRef: ${{ github.sha }}
permissions:
id-token: write
contents: read
packages: write

0 comments on commit 3411c10

Please sign in to comment.