diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index a3b4195..1796160 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -5,7 +5,7 @@ on: types: [published] env: - IMAGE_NAME: rbehzadan/wireguard-3proxy + IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/wireguard-3proxy IMAGE_TAG: ${{ github.event.release.tag_name }} jobs: @@ -21,11 +21,12 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Login to Docker Hub + - name: Login to GitHub Container Registry uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_PASSWORD }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v5