update to linux-_
continuous-integration/drone/push Build is passing Details

This commit is contained in:
teldra 2019-12-18 13:18:40 +01:00
parent 8470ff2a97
commit c6f3097041
4 changed files with 79 additions and 2 deletions

View File

@ -1,2 +1,36 @@
branches:
- buildkernel
kind: pipeline
name: always
clone:
depth: 10
volumes:
- name: dronecache
host:
path: /home/xo/dronecache/
steps:
- name: voidimage
image: voidlinux/voidlinux
pull: always
privileged: true
commands:
- 'sh init.sh'
- 'bash ./kernelbuild.sh'
- 'bash ./sign.sh'
volumes:
- name: dronecache
path: /kernelfiles
- name: notify
image: drillster/drone-email
pull: always
when:
status: [ success, changed, failure ]
settings:
host: cryptoparty-celle.de
from: drone@tzend.de
username:
from_secret: email_username
password:
from_secret: email_password

11
init.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
echo XBPS_CHROOT_CMD=ethereal >> etc/conf
echo XBPS_ALLOW_CHROOT_BREAKOUT=yes >> etc/conf
ln -s / masterdir
echo tausche repo url
sed -i "s/repo.voidlinux.eu/alpha.de.repo.voidlinux.org/" /usr/share/xbps.d/00-repository-main.conf
echo update system
xbps-install -Suy
xbps-install -Suy
echo installiere git und bash
xbps-install -Suy git bash base-devel

14
kernelbuild.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
git diff --name-status FETCH_HEAD...HEAD | grep "^[AM].*srcpkgs/[^/]*/template$" | cut -d/ -f 2 | tee /tmp/templates | sed "s/^/ /"
cat /tmp/templates
exit 0
eval $(grep "version=" srcpkgs/linux/template)
echo start binary bootstrap
./xbps-src -r kernel -H /kernelfiles/hostdir binary-bootstrap
echo start bootstrap-update
./xbps-src -r kernel -H /kernelfiles/hostdir bootstrap-update
echo start build
./xbps-src -r kernel -H /kernelfiles/hostdir pkg linux"${version}"
echo clean distfiles
./xbps-src -r kernel -H /kernelfiles/hostdir clean-repocache
./xbps-src -r kernel -H /kernelfiles/hostdir purge-distfiles

18
sign.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
exit 0
echo sign files
KEY=/kernelfiles/id_rsa
FOLDER=/kernelfiles/hostdir/binpkgs/kernel
if [[ ! -e "${KEY}" ]]; then
xbps-rindex --sign --signedby "I am Groot" --privkey ${KEY} ${FOLDER}
fi
rm -rf ${FOLDER}/*.sig
rm -rf ${FOLDER}/x86_64-repodata
xbps-rindex --privkey ${KEY} -a ${FOLDER}/*.xbps
xbps-rindex --sign --signedby "I am Groot" --privkey ${KEY} ${FOLDER}
xbps-rindex --signedby "I am Groot" --privkey ${KEY} --sign-pkg ${FOLDER}/*.xbps
xbps-rindex --privkey ${KEY} -c ${FOLDER}
xbps-rindex --privkey ${KEY} -c ${FOLDER}/debug
xbps-rindex --privkey ${KEY} -r ${FOLDER}
xbps-rindex --privkey ${KEY} -r ${FOLDER}/debug
chmod -R 777 ${FOLDER}