ci: try building sdcard.img

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
default-cape-symlinks
Robert Nelson 1 year ago
parent b62abb9bc5
commit 86e0882f15

@ -1,5 +1,13 @@
image: robertcnelson/debian-bookworm-slim-riscv:latest
before_script:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan git.beagleboard.org > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
cache:
key: "$CI_PROJECT_NAME"
paths:
@ -16,4 +24,12 @@ build:
- ./03_build_u-boot.sh
- ./04_build_linux.sh
- ./05_generate_payload.bin.sh
- sudo ./06_generate_debian_console_root.sh
- sudo ./07_create_sdcard_img.sh
- tree -s ./deploy/
- cp ./deploy/images/sdcard.img ./
artifacts:
expire_in: 14 days
name: "$CI_PROJECT_NAME-$CI_JOB_ID"
paths:
- "sdcard.img"

@ -1,8 +1,8 @@
#!/bin/bash
if ! id | grep -q root; then
echo "./generate_debian_console_root.sh must be run as root:"
echo "sudo ./generate_debian_console_root.sh"
echo "./06_generate_debian_console_root.sh must be run as root:"
echo "sudo ./06_generate_debian_console_root.sh"
exit
fi

@ -1,8 +1,8 @@
#!/bin/bash
if ! id | grep -q root; then
echo "./create_sdcard_img.sh must be run as root:"
echo "sudo ./create_sdcard_img.sh"
echo "./07_create_sdcard_img.sh must be run as root:"
echo "sudo ./07_create_sdcard_img.sh"
exit
fi
Loading…
Cancel
Save