no push and merge

This commit is contained in:
Benjamin Brummer
2025-10-28 08:44:59 +01:00
parent b9bef3e436
commit b572bccd0e

View File

@@ -55,7 +55,7 @@ jobs:
platforms: ${{ matrix.platform }} platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
tags: ${{ env.REGISTRY_IMAGE }} tags: ${{ env.REGISTRY_IMAGE }}
outputs: type=image,push-by-digest=true,name-canonical=true,push=true outputs: type=image,push-by-digest=true,name-canonical=true
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
@@ -73,35 +73,35 @@ jobs:
if-no-files-found: error if-no-files-found: error
retention-days: 1 retention-days: 1
merge: # merge:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: # needs:
- build # - build
steps: # steps:
- name: Download digests # - name: Download digests
uses: actions/download-artifact@v4 # uses: actions/download-artifact@v4
with: # with:
path: ${{ runner.temp }}/digests # path: ${{ runner.temp }}/digests
pattern: digests-* # pattern: digests-*
merge-multiple: true # merge-multiple: true
# - name: Login to Docker Hub # - name: Login to Docker Hub
# uses: docker/login-action@v3 # uses: docker/login-action@v3
# with: # with:
# username: ${{ secrets.DOCKERHUB_USERNAME }} # username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }} # password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set up Docker Buildx # - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 # uses: docker/setup-buildx-action@v3
- name: Docker meta # - name: Docker meta
id: meta # id: meta
uses: docker/metadata-action@v5 # uses: docker/metadata-action@v5
with: # with:
images: ${{ env.REGISTRY_IMAGE }} # images: ${{ env.REGISTRY_IMAGE }}
- name: Create manifest list and push (--dry-run) # - name: Create manifest list and push (--dry-run)
working-directory: ${{ runner.temp }}/digests # working-directory: ${{ runner.temp }}/digests
run: | # run: |
docker buildx imagetools create --dry-run $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ # docker buildx imagetools create --dry-run $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *) # $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)