|
@@ -57,7 +57,7 @@ jobs:
|
|
|
- name: Build images
|
|
|
uses: docker/bake-action@v2
|
|
|
with:
|
|
|
- push: ${{ github.ref == 'refs/heads/master' }}
|
|
|
+ push: ${{ github.ref_name == github.event.repository.default_branch }}
|
|
|
targets: ${{ matrix.variant }}
|
|
|
files: |
|
|
|
./docker-bake.hcl
|
|
@@ -67,7 +67,7 @@ jobs:
|
|
|
|
|
|
- name: Docker Hub Description
|
|
|
uses: peter-evans/dockerhub-description@v3
|
|
|
- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
|
|
+ if: ${{ github.event_name == 'push' && github.ref_name == github.event.repository.default_branch }}
|
|
|
with:
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|