Skip to content

Build and push MongoDB image to ECR #52

Build and push MongoDB image to ECR

Build and push MongoDB image to ECR #52

name: Build and push MongoDB image to ECR
on:
workflow_dispatch:
inputs:
gitRef:
description: 'Commit, tag or branch name to deploy'
required: true
type: string
default: main
push:
branches:
- main
paths:
- images/mongodb/Dockerfile
schedule:
- cron: '28 3 * * 1'
jobs:
build-and-push-image:
uses: alphagov/govuk-infrastructure/.github/workflows/build-and-push-multiarch-image.yml@main
with:
gitRef: ${{ inputs.gitRef || github.ref }}
ecrRepositoryName: mongodb
dockerfilePath: images/mongodb/Dockerfile
permissions:
id-token: write
contents: read