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]
|
types: [published]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: rbehzadan/wireguard-3proxy
|
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/wireguard-3proxy
|
||||||
IMAGE_TAG: ${{ github.event.release.tag_name }}
|
IMAGE_TAG: ${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -21,11 +21,12 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
registry: ghcr.io
|
||||||
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
Loading…
Reference in New Issue
Block a user