First pass at gitlab-ci
This commit is contained in:
32
.gitlab-ci.yml
Normal file
32
.gitlab-ci.yml
Normal 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
|
||||||
|
|
Reference in New Issue
Block a user