Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev authored Oct 9, 2024
1 parent aacaa4d commit 4760f75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ concurrency:

env:
DOCKER_IMAGE_NAME: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}
DOCKER_REGISTRY: docker.io
GITHUB_IMAGE_NAME: ${{ github.repository }}
GITHUB_REGISTRY: ghcr.io

jobs:
build-and-deploy:
Expand All @@ -25,14 +27,14 @@ jobs:
- name: Login to docker.io
uses: docker/login-action@v3
with:
registry: docker.io
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
registry: ${{ env.GITHUB_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 4760f75

Please sign in to comment.