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 #6
  • Loading branch information
jammsen committed Jan 23, 2024
1 parent b38a8f3 commit 75b897e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
images: |
jammsen/palworld-dedicated-server
ghcr.io/${{ github.repository }}
-
name: Get short SHA
id: slug
run: echo "::set-output name=sha7::$(echo ${GITHUB_SHA} | cut -c1-7)"
-
name: Build and push
uses: docker/build-push-action@v4
Expand All @@ -49,8 +53,8 @@ jobs:
push: true
tags: |
${{ steps.meta.outputs.tags }}
${{ secrets.DOCKERHUB_USERNAME }}/palworld-dedicated-server:${{ env.GIT_SHA }}
${{ secrets.DOCKERHUB_USERNAME }}/palworld-dedicated-server:${{ steps.slug.outputs.sha7 }}
${{ secrets.DOCKERHUB_USERNAME }}/palworld-dedicated-server:latest
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/docker-palworld-dedicated-server:${{ env.GIT_SHA }}
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/docker-palworld-dedicated-server:${{ steps.slug.outputs.sha7 }}
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/docker-palworld-dedicated-server:latest
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 75b897e

Please sign in to comment.