Skip to content

Build and Publish Docker Image on Release #2

Build and Publish Docker Image on Release

Build and Publish Docker Image on Release #2

Workflow file for this run

name: Build and Publish Docker Image on Release
on:
release:
types: [created]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: |

Check failure on line 31 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Build and Publish Docker Image on Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 31, Col: 17): Unexpected symbol: '|'. Located at position 19 within expression: github.repository | lower
ghcr.io/${{ github.repository | lower }}:latest
ghcr.io/${{ github.repository | lower }}:${{ github.event.release.tag_name }}