Skip to content

Commit

Permalink
fix: fix pushing to correct repo (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
matifali authored Jan 16, 2024
1 parent 0025c3f commit 5192a77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/build_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion scripts/push_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5192a77

Please sign in to comment.