summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Carter <james.carter@bytemark.co.uk>2017-03-06 13:51:58 +0000
committerJames Carter <james.carter@bytemark.co.uk>2017-03-06 13:51:58 +0000
commit65216bda8dc4dbda19699ad6ed31bac711161f1a (patch)
treeb9bcbd1d1d541e5818bee57cc500d3533f268d73
parent386adc9672830c7a9fb5d7ead2e8c73c49251fe7 (diff)
parentfa20b862c326f38049cfc66d8558093c3c760690 (diff)
Merge branch '6-move-to-gitlab-ci' into 'master'
Move to gitlab-CI. Closes #6 See merge request !3
-rw-r--r--.gitlab-ci.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..752eaf7
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,40 @@
+stages:
+ - package
+ - publish
+
+.package: &package
+ image: $CI_REGISTRY/docker-images/layers:$DISTRO-deb
+ stage: package
+ script:
+ - package
+ artifacts:
+ paths:
+ - pkg/
+
+package:wheezy:
+ <<: *package
+ variables:
+ DISTRO: wheezy
+
+package:jessie:
+ <<: *package
+ variables:
+ DISTRO: jessie
+
+package:stretch:
+ <<: *package
+ variables:
+ DISTRO: stretch
+
+publish:
+ stage: publish
+ variables:
+ RSYNC_HOSTNAME: repo.bytemark.co.uk
+ tags:
+ - shell
+ script:
+ - publish
+ dependencies:
+ - package:wheezy
+ - package:jessie
+ - package:stretch