feat: build multiarch images (#244)
This commit is contained in:
parent
c3abd2898d
commit
5fb04fd943
|
@ -19,6 +19,7 @@ RUN apt-get update && \
|
||||||
curl \
|
curl \
|
||||||
docker-ce \
|
docker-ce \
|
||||||
docker-ce-cli \
|
docker-ce-cli \
|
||||||
|
docker-buildx-plugin \
|
||||||
docker-compose-plugin \
|
docker-compose-plugin \
|
||||||
htop \
|
htop \
|
||||||
locales \
|
locales \
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu focal stable
|
deb [signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu focal stable
|
||||||
|
|
|
@ -7,6 +7,7 @@ source "./lib.sh"
|
||||||
|
|
||||||
check_dependencies \
|
check_dependencies \
|
||||||
docker
|
docker
|
||||||
|
depot
|
||||||
|
|
||||||
source "./images.sh"
|
source "./images.sh"
|
||||||
|
|
||||||
|
@ -100,7 +101,7 @@ for image in "${IMAGES[@]}"; do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_trace $DRY_RUN depot build --project "gb3p8xrshk" --load \
|
run_trace $DRY_RUN depot build --project "gb3p8xrshk" --load --platform linux/arm64,linux/amd64,linux/arm/v7 --save --metadata-file=build.json \
|
||||||
"${docker_flags[@]}" \
|
"${docker_flags[@]}" \
|
||||||
"$image_dir" \
|
"$image_dir" \
|
||||||
--file="$image_path" \
|
--file="$image_path" \
|
||||||
|
|
|
@ -7,6 +7,7 @@ source "./lib.sh"
|
||||||
|
|
||||||
check_dependencies \
|
check_dependencies \
|
||||||
docker
|
docker
|
||||||
|
depot
|
||||||
|
|
||||||
source "./images.sh"
|
source "./images.sh"
|
||||||
|
|
||||||
|
@ -100,7 +101,6 @@ for image in "${IMAGES[@]}"; do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_trace $DRY_RUN docker push \
|
build_id=$(cat build.json | jq -r .\[\"depot.build\"\].buildID)
|
||||||
"${docker_flags[@]}" \
|
run_trace $DRY_RUN depot push --project "gb3p8xrshk" "$build_id"
|
||||||
"$image_ref" \| indent
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue