Skip to content

Commit

Permalink
push image to github too
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin MS committed May 25, 2024
1 parent 2b5bcac commit d826294
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
env:
# Use docker.io for Docker Hub if empty
REGISTRY: docker.io
# Use ghcr.io for Github Hub if empty
REGISTRY-GH: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

Expand Down Expand Up @@ -60,7 +62,9 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
${{ env.REGISTRY-GH }}/${{ env.IMAGE_NAME }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand Down

0 comments on commit d826294

Please sign in to comment.