Skip to content

Commit

Permalink
Bugfix of #17 wrongful tagging only master and not latest, also tried…
Browse files Browse the repository at this point in the history
… to satisfy #23 with short git-sha tag
  • Loading branch information
jammsen committed Jan 23, 2024
1 parent 633877c commit 028317a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
docker-build-gameserver-image:
runs-on: ubuntu-latest
env:
GIT_SHA: ${GITHUB_SHA::7}
steps:
-
name: Checkout
Expand Down Expand Up @@ -45,5 +47,11 @@ jobs:
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: |
${{ secrets.DOCKER_HUB_USERNAME }}/palworld-dedicated-server:${{ steps.meta.outputs.tags }}
${{ secrets.DOCKER_HUB_USERNAME }}/palworld-dedicated-server:${{ GIT_SHA }}
${{ secrets.DOCKER_HUB_USERNAME }}/palworld-dedicated-server:latest
ghcr.io/${{ secrets.DOCKER_HUB_USERNAME }}/docker-palworld-dedicated-server:${{ steps.meta.outputs.tags }}
ghcr.io/${{ secrets.DOCKER_HUB_USERNAME }}/docker-palworld-dedicated-server:${{ GIT_SHA }}
ghcr.io/${{ secrets.DOCKER_HUB_USERNAME }}/docker-palworld-dedicated-server:latest
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 028317a

Please sign in to comment.