Skip to content

Commit aed4abe

Browse files
roypatbchalios
authored andcommitted
devtool: resolve artifact version from Cargo.toml
automatically determine the version of the artifacts folder from the Firecracker version in Cargo.toml. Eliminates one of the things we have to manually update during the release. Signed-off-by: Patrick Roy <[email protected]>
1 parent 7f3715f commit aed4abe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/devtool

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,8 @@ ensure_ci_artifacts() {
562562

563563
# Fetch all the artifacts so they are local
564564
say "Fetching CI artifacts from S3"
565-
S3_URL=s3://spec.ccfc.min/firecracker-ci/v1.11/$(uname -m)
565+
FC_VERSION=$(cmd_sh "cd src/firecracker/src; cargo pkgid | cut -d# -f2 | cut -d. -f1-2")
566+
S3_URL=s3://spec.ccfc.min/firecracker-ci/v$FC_VERSION/$(uname -m)
566567
ARTIFACTS=$MICROVM_IMAGES_DIR/$(uname -m)
567568
if [ ! -d "$ARTIFACTS" ]; then
568569
mkdir -pv $ARTIFACTS

0 commit comments

Comments
 (0)