From 2820cc6c8a69c8081d0985935f7e3edd9a5b5ad9 Mon Sep 17 00:00:00 2001 From: bonjour <33248848+bonjour-py@users.noreply.github.com> Date: Thu, 13 Jun 2024 18:34:23 +0800 Subject: [PATCH] ci: fix: ghcr image tag lost host && clear workflow and step name (#46) --- .github/workflows/release-dockerhub.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-dockerhub.yml b/.github/workflows/release-dockerhub.yml index 5663033..827a8f7 100644 --- a/.github/workflows/release-dockerhub.yml +++ b/.github/workflows/release-dockerhub.yml @@ -1,6 +1,6 @@ # https://github.com/metcalfc/docker-action-examples/blob/main/.github/workflows/release.yml -name: Publish Docker Image to Docker Hub +name: Publish Docker Image to Docker Hub and GHCR # When its time to do a release do a full cross platform build for all supported # architectures and push all of them to Docker Hub. @@ -27,7 +27,7 @@ jobs: id: prep run: | DOCKER_IMAGE=ray1ex/asgi-webdav - GHCR_IMAGE=rexzhang/asgi-webdav + GHCR_IMAGE=ghcr.io/${{ github.repository }} VERSION=edge if [[ $GITHUB_REF == refs/tags/* ]]; then VERSION=${GITHUB_REF#refs/tags/v} @@ -57,7 +57,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Log in to the Container registry + - name: Log in to GHCR uses: docker/login-action@v3 with: registry: ghcr.io