Update github workflow to use ghcr instead of docker hub

This commit is contained in:
Reza Behzadan 2025-01-04 11:55:31 -05:00
parent c2681de784
commit a3832a3fa7

View File

@ -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