Skip to content

Build and push MongoDB image to ECR #32

Build and push MongoDB image to ECR

Build and push MongoDB image to ECR #32

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-image.yml@sengi/push-to-ghcr

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

View workflow run for this annotation

GitHub Actions / Build and push MongoDB image to ECR

Invalid workflow file

The workflow is not valid. In .github/workflows/build-mongodb-image.yml (Line: 23, Col: 11): Error from called workflow alphagov/govuk-infrastructure/.github/workflows/build-and-push-image.yml@sengi/push-to-ghcr (Line: 78, Col: 19): Unexpected symbol: '"ghcr'. Located at position 29 within expression: inputs.pushToGHCR && format("ghcr.io/{0}", github.repository) || ""
with:
gitRef: ${{ inputs.gitRef || github.ref }}
ecrRepositoryName: mongodb
dockerfilePath: images/mongodb/Dockerfile
pushToGHCR: true
permissions:
id-token: write
contents: read
packages: write