Skip to content

Build and push MongoDB image to ECR #22

Build and push MongoDB image to ECR

Build and push MongoDB image to ECR #22

name: Build and publish 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: '1 22 * * 1'
jobs:
build-and-push-image:

Check failure on line 22 in .github/workflows/build-mongodb-image.yml

View workflow run for this annotation

GitHub Actions / Build and publish MongoDB image to ECR

Invalid workflow file

The workflow is not valid. .github/workflows/build-mongodb-image.yml (Line: 22, Col: 3): Error calling workflow 'alphagov/govuk-infrastructure/.github/workflows/build-and-push-image.yml@main'. The nested job 'build-and-push-image' is requesting 'id-token: write', but is only allowed 'id-token: none'.
uses: alphagov/govuk-infrastructure/.github/workflows/build-and-push-image.yml@main
with:
gitRef: ${{ inputs.gitRef || github.ref }}
ecrRepositoryName: mongodb
dockerfilePath: images/mongodb/Dockerfile