...
 
Commits (1)
stages:
- build
- publish
build-stable:
stage: build
script:
- docker pull gadl/spot-debuild:stable
- docker run --rm=true -v $PWD:/remote gadl/spot-debuild:stable /remote/build.sh stable
build-unstable:
stage: build
script:
- docker pull gadl/spot-debuild
- docker run --rm=true -v $PWD:/remote gadl/spot-debuild /remote/build.sh unstable
publish:
only:
- master
stage: publish
script:
- dput lrde *.changes
#!/bin/sh
cd /remote
git clone https://gitlab.lrde.epita.fr/spot/divine-ltsmin-deb.git
cd divine-ltsmin-deb
case $1 in
unstable);;
stable) sed -i -e 's/unstable/stable/' debian/changelog;;
esac
DEB_BUILD_OPTIONS='parallel=8' gbp buildpackage --git-ignore-new
cd ..
rm -rf divine-ltsmin-deb