File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euxo pipefail
3+
4+ if [ " $# " -eq 0 ]; then
5+ echo " Error: At least one parameter (label) must be provided."
6+ exit 1
7+ fi
8+
9+ LABELS=()
10+ for LABEL in " $@ " ; do
11+ LABELS+=(" ${LABEL} " )
12+ done
13+
14+ # Define target architectures
15+ ARCHITECTURES=(" amd64" , " arm64" )
16+
17+ # Create and push the merged multiarch manifest for each tag; each tag combines all architecture-specific tags into one tag
18+ for LABEL in " ${LABELS[@]} " ; do
19+ echo " Merging all architectures (${ARCHITECTURES[@]} ) into single tag: ${LABEL} "
20+
21+ MANIFEST_MERGE_CALL=" docker buildx imagetools create -t ghcr.io/eclipse-score/devcontainer:${LABEL} "
22+
23+ for ARCH in " ${ARCHITECTURES[@]} " ; do
24+ MANIFEST_MERGE_CALL+=" ghcr.io/eclipse-score/devcontainer:${LABEL} -${ARCH} "
25+ done
26+
27+ eval " $MANIFEST_MERGE_CALL "
28+ done
You can’t perform that action at this time.
0 commit comments