labsync/.gitlab-ci.yml
2018-02-20 23:21:07 +01:00

60 lines
1,011 B
YAML

image: docker:latest
variables:
PACKER_VERSION: 1.2.0
ANNOUNCE: http://raven.lab.fablab-nea.de:6969/announce
WEBSEED: http://raven.lab.fablab-nea.de/labsync
PACKER_DOCKER_IMAGE: ${CI_REGISTRY_IMAGE}/packer
MKTORRENT_DOCKER_IMAGE: ${CI_REGISTRY_IMAGE}/mktorrent
stages:
- prepare
- build
- torrent
# - deploy
#
services:
- docker:dind
before_script:
- docker info
- apk add --no-cache make
dockerimage:
stage: prepare
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- make dockerimg
- docker push $PACKER_DOCKER_IMAGE
- docker push $MKTORRENT_DOCKER_IMAGE
only:
- /ci/
tags:
- fablab
squashfs:
stage: build
script:
- make images/debian-stretch
artifacts:
paths:
- images
expire_in: 2 weeks
only:
- /ci/
tags:
- fablab
mktorrent:
stage: torrent
script:
- make images/debian-stretch.torrent
artifacts:
paths:
- images
expire_in: 2 weeks
only:
- /ci/
tags:
- fablab