diff --git a/.github/workflows/docker-publish-on-comment.yml b/.github/workflows/docker-publish-on-comment.yml index 79c223c4..d8572ea8 100644 --- a/.github/workflows/docker-publish-on-comment.yml +++ b/.github/workflows/docker-publish-on-comment.yml @@ -54,10 +54,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Log into Docker Hub registry - if: ${{ secrets.DOCKERHUB_TOKEN }} != '' + if: env.DOCKERHUB_USERNAME != '' uses: docker/login-action@3d58c274f17dffee475a5520cbe67f0a882c4dbb with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: ${{ env.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} # Extract metadata (tags, labels) for Docker diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 7de97eb0..efe18d82 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -56,10 +56,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Log into Docker Hub registry - if: github.event_name != 'pull_request' && ${{ secrets.DOCKERHUB_TOKEN }} != '' + if: github.event_name != 'pull_request' && env.DOCKERHUB_USERNAME != '' uses: docker/login-action@3d58c274f17dffee475a5520cbe67f0a882c4dbb with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: ${{ env.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} # Extract metadata (tags, labels) for Docker