diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/developer.yml similarity index 71% rename from .github/workflows/docker-hub.yml rename to .github/workflows/developer.yml index 9e9a7c957..429c34f18 100644 --- a/.github/workflows/docker-hub.yml +++ b/.github/workflows/developer.yml @@ -17,11 +17,20 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Docker - GHCR Login + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Docker - Metadata id: meta uses: docker/metadata-action@v5 with: - images: ${{ github.repository }} + images: | + ${{ github.repository }} + ghcr.io/${{ github.repository }} tags: type=raw,value=dev flavor: latest=false @@ -50,11 +59,20 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Docker - GHCR Login + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Docker - Metadata id: meta uses: docker/metadata-action@v5 with: - images: ${{ github.repository }} + images: | + ${{ github.repository }} + ghcr.io/${{ github.repository }} tags: type=raw,value=dev-arm64 flavor: latest=false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63e7d5ccd..902dfe5e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: # yamllint disable-line rule:truthy types: [published] jobs: - # Builds the Dockerfile and pushes it to dockerhub + # Builds the Dockerfile and pushes it to dockerhub and GHCR release-amd64: name: Release - Docker image runs-on: ubuntu-latest @@ -19,11 +19,20 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Docker - GHCR Login + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Docker - Metadata id: meta uses: docker/metadata-action@v5 with: - images: ${{ github.repository }} + images: | + ${{ github.repository }} + ghcr.io/${{ github.repository }} # generate Docker tags based on the following events/attributes tags: | type=semver,pattern=v{{version}} @@ -39,7 +48,7 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} - # Builds the Dockerfile.arm64 and pushes it to dockerhub + # Builds the Dockerfile.arm64 and pushes it to dockerhub and GHCR release-arm64: name: Release - Docker image runs-on: ubuntu-latest @@ -63,7 +72,9 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ github.repository }} + images: | + ${{ github.repository }} + ghcr.io/${{ github.repository }} # generate Docker tags based on the following events/attributes tags: | type=semver,pattern=v{{version}}-arm64 diff --git a/README.md b/README.md index 53180b34e..b698cdbdd 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ [![Discord](https://img.shields.io/discord/1200397673329594459?logo=discord&label=Discord&link=https%3A%2F%2Fdiscord.gg%2FUxBxStPAAE)](https://discord.com/invite/UxBxStPAAE) [![Docker Hub](https://img.shields.io/badge/Docker_Hub-palworld-blue?logo=docker)](https://hub.docker.com/r/thijsvanloef/palworld-server-docker) +[![GHCR](https://img.shields.io/badge/GHCR-palworld-blue?logo=docker)](https://github.com/thijsvanloef/palworld-server-docker/pkgs/container/palworld-server-docker) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/palworld-server-chart)](https://artifacthub.io/packages/search?repo=palworld-server-chart) [Chat with the community on Discord](https://discord.gg/UxBxStPAAE)