Skip to content

Commit

Permalink
Attempt to fix login for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Jan 8, 2024
1 parent cb66315 commit 5d45ca6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
if: ${{ env.REGISTRY_USERNAME != '' }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ vars.REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Extract Docker metadata
id: meta
Expand All @@ -68,7 +67,7 @@ jobs:
with:
context: .
file: ${{ matrix.file }}
push: ${{ github.event_name != 'pull_request' && env.REGISTRY_USERNAME != '' }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down

0 comments on commit 5d45ca6

Please sign in to comment.