feat: build multiarch images (#244)

This commit is contained in:
Muhammad Atif Ali 2024-01-16 15:39:23 +03:00 committed by GitHub
parent c3abd2898d
commit 5fb04fd943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View File

@ -19,6 +19,7 @@ RUN apt-get update && \
curl \
docker-ce \
docker-ce-cli \
docker-buildx-plugin \
docker-compose-plugin \
htop \
locales \

View File

@ -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

View File

@ -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" \

View File

@ -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