Skip to content

Update docker.yml

Update docker.yml #49

Workflow file for this run

name: Build and Push Docker Image
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Get Repository Name in Lowercase
id: repo_name
uses: ASzc/change-string-case-action@v5
with:
string: ${{ github.repository }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64/v8
push: true
tags: |

Check failure on line 41 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / Build and Push Docker Image

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 41, Col: 17): Unexpected symbol: '|'. Located at position 12 within expression: github.ref | replace("refs/tags/v", "")
ghcr.io/${{ steps.repo_name.outputs.lowercase }}:${{ github.ref | replace("refs/tags/v", "") }}