Skip to content

Commit 1645a32

Browse files
fangn2Debian
authored and
Debian
committed
Fix CI build by not hardcoding distro name
Signed-off-by: Tony Fang <[email protected]>
1 parent dc8f6de commit 1645a32

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ UID = $(shell id -u)
2929
GID = $(shell id -g)
3030

3131
firecracker_version=v1.0.0
32+
DEV_TOOL_RELESE_BRANCH=firecracker-v1.2
3233

3334
# The below files are needed and can be downloaded from the internet
3435
release_url=https://github.com/firecracker-microvm/firecracker/releases/download/$(firecracker_version)/firecracker-$(firecracker_version)-$(arch).tgz
@@ -110,7 +111,7 @@ $(FC_TEST_DATA_PATH)/root-drive-ssh-key $(FC_TEST_DATA_PATH)/root-drive-with-ssh
110111
ifeq ($(GID), 0)
111112
$(MAKE) $(FIRECRACKER_DIR)
112113
$(FIRECRACKER_DIR)/tools/devtool build_rootfs -m $(FC_TEST_DATA_PATH)/mnt
113-
cp $(FIRECRACKER_DIR)/build/rootfs/bionic.rootfs.ext4 $(FC_TEST_DATA_PATH)/root-drive-with-ssh.img
114+
cp $(FIRECRACKER_DIR)/build/rootfs/*.rootfs.ext4 $(FC_TEST_DATA_PATH)/root-drive-with-ssh.img
114115
cp $(FIRECRACKER_DIR)/build/rootfs/ssh/id_rsa $(FC_TEST_DATA_PATH)/root-drive-ssh-key
115116
rm -rf $(FIRECRACKER_DIR)
116117
else
@@ -133,7 +134,7 @@ $(FC_TEST_DATA_PATH)/ltag:
133134
$(call install_go,github.com/kunalkushwaha/ltag,v0.2.3)
134135

135136
$(FIRECRACKER_DIR):
136-
- git clone https://github.com/firecracker-microvm/firecracker.git $(FIRECRACKER_DIR)
137+
- git clone --branch $(DEV_TOOL_RELESE_BRANCH) https://github.com/firecracker-microvm/firecracker.git $(FIRECRACKER_DIR)
137138

138139
.PHONY: test-images
139140
test-images: $(FIRECRACKER_BIN) $(JAILER_BIN)

examples/cmd/snapshotting/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ firecracker:
5959

6060
root-drive-with-ssh.img root-drive-ssh-key:
6161
- mkdir temp
62-
- git clone https://github.com/firecracker-microvm/firecracker temp
62+
- git clone --branch firecracker-${VER%.*} https://github.com/firecracker-microvm/firecracker temp
6363
temp/tools/devtool build_rootfs
64-
cp temp/build/rootfs/bionic.rootfs.ext4 root-drive-with-ssh.img
64+
cp temp/build/rootfs/*.rootfs.ext4 root-drive-with-ssh.img
6565
cp temp/build/rootfs/ssh/id_rsa root-drive-ssh-key
6666
rm -rf temp
6767

0 commit comments

Comments
 (0)