stages: - test - package - publish test:jessie: &test image: $CI_REGISTRY/docker-images/layers:$DISTRO-ruby stage: test variables: DISTRO: jessie script: - make test .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