Update github workflow to use ghcr instead of docker hub
This commit is contained in:
parent
c2681de784
commit
a3832a3fa7
9
.github/workflows/build-and-push.yaml
vendored
9
.github/workflows/build-and-push.yaml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user