From 3114c9f8c77aca320312425dfc8caa5c172c3bce Mon Sep 17 00:00:00 2001 From: octeep Date: Tue, 23 Aug 2022 19:37:37 +0800 Subject: [PATCH] Revert "Try publishing to Docker Hub instead" This reverts commit b2546b3219ea4735c99f14151f04dbdab060aa5f. --- .github/workflows/container.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 7302e7a..4e3dd36 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-20.04 env: - CONTAINER_NAME: docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/wireproxy + CONTAINER_NAME: ghcr.io/${{ github.repository }} BUILD_PLATFORMS: linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x RAW_CONTAINER_TAG: ${{ github.event.inputs.container_tag || github.event.pull_request.head.ref || 'latest' }} RAW_REF_NAME: ${{ github.event.pull_request.head.ref || github.ref }} @@ -34,12 +34,12 @@ jobs: id: buildx uses: docker/setup-buildx-action@v2.0.0 - - name: Login to Docker Hub + - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: - registry: docker.io - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 with: