Skip to content

Commit

Permalink
Merge pull request #1 from aaomidi/patch-1
Browse files Browse the repository at this point in the history
GHCR and DockerHub
  • Loading branch information
aaomidi authored Jan 22, 2024
2 parents ee23b88 + 078a50f commit 7e32368
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,26 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
jammsen/palworld-dedicated-server
ghcr.io/${{ github.repository }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: jammsen/palworld-dedicated-server:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 7e32368

Please sign in to comment.