1
Fork 0

Add back docker push conditions to build action

This commit is contained in:
viktorstrate 2021-03-29 12:36:14 +02:00
parent 804b4576ec
commit 1ba62ab03a
No known key found for this signature in database
GPG Key ID: 3F855605109C1E8A
1 changed files with 18 additions and 15 deletions

View File

@ -79,14 +79,17 @@ jobs:
docker buildx build --output "type=image,push=false" ${{ steps.prepare.outputs.buildx_args }}
- name: Docker Login
if: success() && github.event_name != 'pull_request' && github.repository == 'photoview/photoview'
run: |
echo "${DOCKER_PASSWORD}" | docker login --username "${{ steps.prepare.outputs.docker_username }}" --password-stdin
- name: Push to Docker Hub
if: success() && github.event_name != 'pull_request' && github.repository == 'photoview/photoview'
run: |
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }}
- name: Clear
if: always() && github.event_name != 'pull_request' && github.repository == 'photoview/photoview'
run: |
rm -f ${HOME}/.docker/config.json