Skip to content

Commit

Permalink
Separate docker login
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Ledez committed Oct 7, 2023
1 parent 348f91d commit f102ce0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ jobs:
docker container run --env-file docker-${CONTAINER_ARCH}.env cgwire/kitsu-checker:latest
docker kill ${CONTAINER_NAME}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker image
if: github.event_name != 'pull_request'
uses: docker/build-push-action@v5
Expand All @@ -113,7 +118,5 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit f102ce0

Please sign in to comment.