First pass at gitlab-ci

This commit is contained in:
Patrick J Cherry
2017-01-24 16:51:07 +00:00
parent 885990c5b3
commit 1f2b994c45

32
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,32 @@
stages:
- package
- publish
package:jessie: &package
stage: package
image: $CI_REGISTRY/docker-images/layers:$DISTRO-deb
variables:
DISTRO: jessie
script:
- git checkout -b debian/$DISTRO
- update-changelog
- install-dependencies
- rm -fv perp-build-deps*.deb .gitlab-ci.yml ../*.{deb,dsc,build,changes,tar.*}
- gbp buildpackage --git-ignore-new --git-ignore-branch -us -uc
- save-artifacts
artifacts:
paths:
- pkg/
package:stretch:
<<: *package
variables:
DISTRO: stretch
publish:
stage: publish
tags:
- shell
script:
- publish