From 5192a7706ddfe900b4b9792a2e42af4c5376d64d Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 16 Jan 2024 16:53:43 +0300 Subject: [PATCH] fix: fix pushing to correct repo (#249) --- scripts/build_images.sh | 2 +- scripts/push_images.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_images.sh b/scripts/build_images.sh index a7a9e25..ead20fb 100755 --- a/scripts/build_images.sh +++ b/scripts/build_images.sh @@ -101,7 +101,7 @@ for image in "${IMAGES[@]}"; do continue fi - run_trace $DRY_RUN depot build --project "gb3p8xrshk" --load --platform linux/arm64,linux/amd64,linux/arm/v7 --save --metadata-file=build.json \ + run_trace $DRY_RUN depot build --project "gb3p8xrshk" --load --platform linux/arm64,linux/amd64,linux/arm/v7 --save --metadata-file="build_{$image}.json" \ "${docker_flags[@]}" \ "$image_dir" \ --file="$image_path" \ diff --git a/scripts/push_images.sh b/scripts/push_images.sh index 6b58d41..1027def 100755 --- a/scripts/push_images.sh +++ b/scripts/push_images.sh @@ -101,6 +101,6 @@ for image in "${IMAGES[@]}"; do continue fi - build_id=$(cat build.json | jq -r .\[\"depot.build\"\].buildID) + build_id=$(cat "build_${image}.json" | jq -r .\[\"depot.build\"\].buildID) run_trace $DRY_RUN depot push --project "gb3p8xrshk" --tag "$image_ref" --tag "codercom/enterprise-${image}:latest" "$build_id" done