try to fix push problems

This commit is contained in:
Michael Peter Christen committed 2025-06-21 19:28:24 +02:00
1 parent 5aaffec11c
commit 2866f913c6
1 file changed
+5 -5
+5 -5
View File
@@ -49,9 +49,9 @@ jobs:
type=raw,value='{{major}}'${{ matrix.suffix }},enable=${{ startsWith(github.ref, 'refs/tags/') }}
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -64,11 +64,11 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v6
with:
# Use "Dockerfile" if matrix.tag is empty, otherwise use "Dockerfile.{tag}"
context: .
file: docker/Dockerfile${{ matrix.tag != '' && format('.{0}', matrix.tag) || '' }}
push: true
platforms: ${{ matrix.platforms }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false