Skip to content

Commit cfbe1ba

Browse files
committed
ci: properly handle digests dir
1 parent 9352ee9 commit cfbe1ba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ jobs:
121121
env:
122122
FULL_DOCKER_IMAGE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TOR_VERSION }}
123123
DOCKER_IMAGE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
124+
RUNNER_TEMP: ${{ runner.temp }}
124125
run: |-
125-
readarray -t digests < <(printf "$DOCKER_IMAGE@sha256:%s\n" *)
126+
readarray -t digests < <(find "$RUNNER_TEMP/digests" -type f | xargs -n1 basename | xargs printf "$DOCKER_IMAGE@sha256:%s\n")
126127
docker buildx imagetools create -t "$FULL_DOCKER_IMAGE" "${digests[@]}"
127128
docker buildx imagetools inspect "$FULL_DOCKER_IMAGE"
128129
echo "digest=$(docker buildx imagetools inspect "$FULL_DOCKER_IMAGE" | grep "Digest:" | awk '{ print $2 }')" >"$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)