v1.8.3: Duplicates are back, bug fixes #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Docker Image to GHCR | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
env: | |
IMAGE_NAME: open-tv | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Extract version from tag | |
id: version | |
run: | | |
echo "version=${GITHUB_REF#refs/tags/v}" >> "$GITHUB_OUTPUT" | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push image to GHCR | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: | | |
ghcr.io/${{ github.repository_owner }}/open-tv:latest | |
ghcr.io/${{ github.repository_owner }}/open-tv:${{ steps.version.outputs.version }} | |
build-args: | | |
pkgver=${{ steps.version.outputs.version }} |