Skip to content

Create and publish a Docker image #3

Create and publish a Docker image

Create and publish a Docker image #3

name: Create and publish a Docker image
on:
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to GHCR
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
id: push
uses: docker/[email protected]
with:
context: .
file: ./workshop/scenario_1/Dockerfile
push: true
tags: |

Check failure on line 38 in .github/workflows/buildPushImage.yaml

View workflow run for this annotation

GitHub Actions / Create and publish a Docker image

Invalid workflow file

The workflow is not valid. .github/workflows/buildPushImage.yaml (Line: 38, Col: 17): Unexpected symbol: '('. Located at position 30 within expression: github.repository.toLowerCase()
ghcr.io/${{ github.repository.toLowerCase() }}/bitcoinero:latest
ghcr.io/${{ github.repository.toLowerCase() }}/bitcoinero:${{ github.run_id }}