Add back docker push conditions to build action
This commit is contained in:
parent
804b4576ec
commit
1ba62ab03a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue