ci: populate users.table, add openssl.
continuous-integration/drone/push Build is failing Details

Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
Yilin Sun 2024-04-19 09:10:10 +08:00
parent ebc6949358
commit 6e212566ac
Signed by: imi415
GPG Key ID: 17F01E106F9F5E0A
3 changed files with 29 additions and 26 deletions

View File

@ -11,23 +11,14 @@ steps:
commands:
- git submodule update --init --recursive
- name: dependencies
- name: prepare environment
environment:
DEBIAN_FRONTEND: noninteractive
commands:
- echo "Sleep 5 minutes to overcome the unattended-upgrades"
- sleep 300
- apt-get update
- apt-get install -y sed make binutils build-essential diffutils gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc findutils wget
- name: patch defconfig
environment:
CONFIG_NAME: "rpi2_defconfig"
commands:
- .drone/patch_defconfig.sh
- name: configure
commands:
- .drone/install_dependencies.sh
- .drone/populate_overlay.sh
- .drone/patch_defconfig.sh
- ./buildroot_make.sh rpi2_defconfig
- name: restore cache
@ -77,23 +68,14 @@ steps:
commands:
- git submodule update --init --recursive
- name: dependencies
- name: prepare environment
environment:
DEBIAN_FRONTEND: noninteractive
commands:
- echo "Sleep 5 minutes to overcome the unattended-upgrades"
- sleep 300
- apt-get update
- apt-get install -y sed make binutils build-essential diffutils gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc findutils wget
- name: patch defconfig
environment:
CONFIG_NAME: "tlt113_minievm_defconfig"
commands:
- .drone/patch_defconfig.sh
- name: configure
commands:
- .drone/install_dependencies.sh
- .drone/populate_overlay.sh
- .drone/patch_defconfig.sh
- ./buildroot_make.sh tlt113_minievm_defconfig
- name: restore cache

9
.drone/install_dependencies.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
echo "Sleep 5 minutes to overcome the unattended-upgrade period"
sleep 300
apt-get update
apt-get install -y \
sed make binutils build-essential diffutils \
gcc g++ bash patch gzip bzip2 perl tar cpio \
unzip rsync file bc findutils wget openssl libssl-dev

12
.drone/populate_overlay.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
SOURCE_PATH=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )/../" &> /dev/null && pwd )
USERS_TABLE=${SOURCE_PATH}/external_tree/customizations/users.table
echo "Populating overlay directory..."
PASSWORD=$(openssl rand -hex 8)
echo "Generated default password for current build: ${PASSWORD}"
echo "imi415 1000 imi415 1000 =${PASSWORD} /home/imi415 /bin/bash wheel imi415" > ${USERS_TABLE}