From 1f2b994c45eebde958b5a81d862c5b5db91df7c2 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 24 Jan 2017 16:51:07 +0000 Subject: [PATCH] First pass at gitlab-ci --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8c0f322 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 +