Skip to content

fix (ci): publish ghcr.io images on tag #10

fix (ci): publish ghcr.io images on tag

fix (ci): publish ghcr.io images on tag #10

Workflow file for this run

name: Release
on:
push:
branches: ["main"]
tags: ["v*"]
jobs:
lint:
uses: "./.github/workflows/_lint.yml"
build:
uses: "./.github/workflows/_build.yml"
needs: ["lint"]
publish-to-ghcr:
needs: ["build"]
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ github.ref == 'refs/heads/main' && 'latest' || github.ref_name }}