Skip to content

Commit

Permalink
👷 Fix docker login
Browse files Browse the repository at this point in the history
Run docker login on push to develop rather than during pull requests
  • Loading branch information
AndreMiras committed Aug 19, 2024
1 parent d7f0a1d commit fe82585
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ jobs:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- run: make docker/build
- run: make docker/login
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
- name: docker push
if: github.ref == 'develop'
run: make docker/push
- run: |
make docker/login
make docker/push

0 comments on commit fe82585

Please sign in to comment.