Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: Uploaded digest artifact name for Docker build (#12272)

Trenton H91ddda925675
diff --git a/.github/workflows/ci-docker.yml b/.github/workflows/ci-docker.yml
index 83427294e..8fe28792d 100644
--- a/.github/workflows/ci-docker.yml
+++ b/.github/workflows/ci-docker.yml
@@ -149,13 +149,13 @@ jobs:
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
echo "digest=${digest}"
- touch "/tmp/digests/${digest#sha256:}"
+ echo "${digest}" > "/tmp/digests/digest-${{ matrix.arch }}.txt"
- name: Upload digest
if: steps.check-push.outputs.should-push == 'true'
uses: actions/[email protected]
with:
name: digests-${{ matrix.arch }}
- path: /tmp/digests/*
+ path: /tmp/digests/digest-${{ matrix.arch }}.txt
if-no-files-found: error
retention-days: 1
archive: false
@@ -172,7 +172,7 @@ jobs:
uses: actions/[email protected]
with:
path: /tmp/digests
- pattern: digests-*
+ pattern: digest-*.txt
merge-multiple: true
- name: List digests
run: |
@@ -218,8 +218,9 @@ jobs:
tags=$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "${DOCKER_METADATA_OUTPUT_JSON}")
digests=""
- for digest in *; do
- digests+="${{ env.REGISTRY }}/${REPOSITORY}@sha256:${digest} "
+ for digest_file in digest-*.txt; do
+ digest=$(cat "${digest_file}")
+ digests+="${{ env.REGISTRY }}/${REPOSITORY}@${digest} "
done
echo "Creating manifest with tags: ${tags}"