Update docker-publish.yml

Adding fix for forks to use a variable for Docker image reference

Source of information: https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-docker-images
This commit is contained in:
BlockyBlockling 2024-10-24 22:05:46 +02:00 committed by GitHub
parent d653edb22e
commit 86e8a6371e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,10 @@ on:
types: types:
- published - published
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs: jobs:
build-and-push: build-and-push:
name: Build and Push name: Build and Push
@ -26,7 +30,7 @@ jobs:
id: docker_meta id: docker_meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ghcr.io/pelican-dev/panel images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: | flavor: |
latest=false latest=false
tags: | tags: |