feat: build multiarch images (#244)
This commit is contained in:
parent
c3abd2898d
commit
5fb04fd943
|
@ -19,6 +19,7 @@ RUN apt-get update && \
|
|||
curl \
|
||||
docker-ce \
|
||||
docker-ce-cli \
|
||||
docker-buildx-plugin \
|
||||
docker-compose-plugin \
|
||||
htop \
|
||||
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 \
|
||||
docker
|
||||
depot
|
||||
|
||||
source "./images.sh"
|
||||
|
||||
|
@ -100,7 +101,7 @@ for image in "${IMAGES[@]}"; do
|
|||
continue
|
||||
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[@]}" \
|
||||
"$image_dir" \
|
||||
--file="$image_path" \
|
||||
|
|
|
@ -7,6 +7,7 @@ source "./lib.sh"
|
|||
|
||||
check_dependencies \
|
||||
docker
|
||||
depot
|
||||
|
||||
source "./images.sh"
|
||||
|
||||
|
@ -100,7 +101,6 @@ for image in "${IMAGES[@]}"; do
|
|||
continue
|
||||
fi
|
||||
|
||||
run_trace $DRY_RUN docker push \
|
||||
"${docker_flags[@]}" \
|
||||
"$image_ref" \| indent
|
||||
build_id=$(cat build.json | jq -r .\[\"depot.build\"\].buildID)
|
||||
run_trace $DRY_RUN depot push --project "gb3p8xrshk" "$build_id"
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue