File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,30 @@ jobs:
180
180
181
181
182
182
- name : 🚀 Create manifest list and push
183
- shell : bash
184
- run : .github/scripts/build-images.sh
183
+ working-directory : /tmp
184
+ run : |
185
+ variants=($(ls bake-meta-*.json | sed -E 's/bake-meta-//; s/-amd64.json|-arm64.json//g' | sort -u))
186
+ for variant in "${variants[@]}"; do
187
+
188
+ # Fetch digests for amd64 and arm64 architectures
189
+ DIGEST_AMD64=$(basename $(ls /tmp/digests/digests-${variant}-amd64/*))
190
+ DIGEST_ARM64=$(basename $(ls /tmp/digests/digests-${variant}-arm64/*))
191
+ echo "Digest AMD64: $DIGEST_AMD64"
192
+ echo "Digest ARM64: $DIGEST_ARM64"
193
+
194
+ # Create the manifest list for Docker Hub
195
+ docker buildx imagetools create $(jq -cr ".target.\"docker-metadata-action\".tags | map(select(startswith(\"${DOCKER_NAMESPACE}\")) | \"-t \" + .) | join(\" \")" /tmp/bake-meta-${variant}-amd64.json) \
196
+ "${DOCKER_NAMESPACE}@sha256:${DIGEST_AMD64}" \
197
+ "${DOCKER_NAMESPACE}@sha256:${DIGEST_ARM64}"
198
+
199
+ # Create the manifest list for GHCR
200
+ docker buildx imagetools create $(jq -cr ".target.\"docker-metadata-action\".tags | map(select(startswith(\"${GHCR_NAMESPACE}\")) | \"-t \" + .) | join(\" \")" /tmp/bake-meta-${variant}-amd64.json) \
201
+ "${GHCR_NAMESPACE}@sha256:${DIGEST_AMD64}" \
202
+ "${GHCR_NAMESPACE}@sha256:${DIGEST_ARM64}"
203
+ done
204
+
205
+ # - name: 🚀 Create manifest list and push
206
+ # shell: bash
207
+ # run: .github/scripts/build-images.sh
185
208
186
209
...
You can’t perform that action at this time.
0 commit comments