Update docker-publish.yaml

This commit is contained in:
Matt
2025-07-10 14:32:12 -04:00
committed by GitHub
parent ca4aed7bd3
commit 721e407600

View File

@@ -78,7 +78,7 @@ jobs:
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
if: ${{ (github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')) && secrets.DOCKER_USERNAME != '' }} if: (github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')) && ${{ secrets.DOCKER_USERNAME }} != ''
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
@@ -152,7 +152,7 @@ jobs:
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
if: ${{ secrets.DOCKER_USERNAME != '' }} if: ${{ secrets.DOCKER_USERNAME }} != ''
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
@@ -195,7 +195,7 @@ jobs:
- name: Create manifest list and push Dockerhub - name: Create manifest list and push Dockerhub
id: push-dockerhub id: push-dockerhub
working-directory: /tmp/digests working-directory: /tmp/digests
if: ${{ (github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')) && secrets.DOCKER_USERNAME != '' }} if: (github.event_name == 'schedule' || startsWith(github.ref, 'refs/tags/')) && ${{ secrets.DOCKER_USERNAME }} != ''
run: | run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.DOCKERHUB_REPO }}@sha256:%s ' *) $(printf '${{ env.DOCKERHUB_REPO }}@sha256:%s ' *)