Skip to content

Commit

Permalink
fix action regestry
Browse files Browse the repository at this point in the history
fix action regestry
  • Loading branch information
Two-Play committed Nov 27, 2024
1 parent d0d3517 commit fece778
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,26 @@ jobs:
# Docker Login
- name: Log in to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set Docker tag
run: |
if [ -z "${{ github.ref_name }}" ]; then
echo "VERSION=latest" >> $GITHUB_ENV
else
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
fi
# Docker Image Build
- name: Build and tag Docker image
run: |
Expand Down

0 comments on commit fece778

Please sign in to comment.