-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
22 lines (22 loc) · 890 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
workspace:
base: /kernel
path: /linux-smaug
pipeline:
build:
image: dvitali/pixelc-build-container:3
commands:
- if [ ! -d "linux" ]; then git clone -b $(cat BRANCH) --depth 1 https://github.com/pixelc-linux/linux linux; fi
- if [ ! -d "pixelc-kernel-scripts" ]; then git clone https://github.com/pixelc-linux/pixelc-kernel-scripts.git; fi
- if [ ! -d "pixelc-mkinitramfs.sh" ]; then git clone https://github.com/pixelc-linux/pixelc-mkinitramfs.sh.git; fi
- cd pixelc-kernel-scripts
- KERNEL_CROSS_PREFIX=$CROSS_COMPILE
- ./defconfig.sh ../linux
- ./build.sh ../linux
- ./make_zimage.sh
github_release:
image: plugins/github-release
secrets: [ github_token ]
files: [ /kernel/linux-smaug/pixelc-kernel-scripts/output/Image.fit,
/kernel/linux-smaug/pixelc-kernel-scripts/Image.lz4 ]
when:
event: tag