Skip to content

Build and publish image #30

Build and publish image

Build and publish image #30

Workflow file for this run

name: Build and publish image
on:
workflow_dispatch:
inputs:
gitRef:
description: 'Commit, tag or branch name to deploy'
required: true
type: string
default: 'main'
workflow_run:
workflows: [CI]
types: [completed]
branches: [main]
jobs:
build-and-push-image:
uses: alphagov/govuk-infrastructure/.github/workflows/build-and-push-image.yml@main
with:
gitRef: ${{ inputs.gitRef || github.ref }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_GOVUK_ECR_ACCESS_KEY_ID }}

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

View workflow run for this annotation

GitHub Actions / Build and publish image

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 23, Col: 26): Invalid secret, AWS_ACCESS_KEY_ID is not defined in the referenced workflow. .github/workflows/build.yml (Line: 24, Col: 30): Invalid secret, AWS_SECRET_ACCESS_KEY is not defined in the referenced workflow.
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_GOVUK_ECR_SECRET_ACCESS_KEY }}