Skip to content

fix github actions

fix github actions #3

Workflow file for this run

name: Build and Push Docker Image
on:
push:
tags:
- '*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.ref#refs/tags/ }}

Check failure on line 30 in .github/workflows/docker-publish.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-publish.yml (Line: 30, Col: 17): Unexpected symbol: 'ref#refs/tags/'. Located at position 8 within expression: github.ref#refs/tags/