-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
25 lines (25 loc) · 1.26 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
workspace:
base: /img
path: /i
pipeline:
build:
image: dvitali/pixelc-build-container:5
commands:
- git clone --depth 1 https://github.com/pixelc-linux/pixelc-kernel-scripts scripts
- export KVER=$(cat KERNEL)
- export RDVER=$(cat RAMDISK)
- wget "https://github.com/pixelc-linux/zImage-releases/releases/download/$KVER/Image.fit" -O Image.fit
- wget "https://github.com/pixelc-linux/initramfs-releases/releases/download/$RDVER/initramfs_data-mmcblk1p7.cpio.gz" -O initramfs_data.cpio.gz
- wget "https://github.com/pixelc-linux/initramfs-releases/releases/download/$RDVER/initramfs_system-mmcblk1p4.cpio.gz" -O initramfs_system.cpio.gz
- cd scripts
- mkdir output
- ./make_image.sh ../Image.fit ../initramfs_data.cpio.gz output/boot-$KVER-data.img.unsigned
- ./make_image.sh ../Image.fit ../initramfs_system.cpio.gz output/boot-$KVER-system.img.unsigned
- ./sign_image.sh output/boot-$KVER-data.img.unsigned output/boot-$KVER-data.img
- ./sign_image.sh output/boot-$KVER-system.img.unsigned output/boot-$KVER-system.img
github_release:
image: plugins/github-release
secrets: [ github_token ]
files: [ /img/i/scripts/output/*.unsigned, /img/i/scripts/output/*.img]
when:
event: tag