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 +