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: