labsync/.gitlab-ci.yml
2018-03-18 17:59:47 +01:00

54 lines
984 B
YAML

image: docker:latest
variables:
PACKER_VERSION: 1.2.0
ANNOUNCE: http://10.105.255.0:6969/announce
WEBSEED: http://10.105.255.0/labsync/$CI_COMMIT_REF_NAME/$CI_PIPELINE_ID/images
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
tags:
- fablab
squashfs:
stage: build
script:
- make images/debian-stretch.squashfs
artifacts:
paths:
- images
expire_in: 2 weeks
tags:
- fablab
mktorrent:
stage: torrent
script:
- make images/debian-stretch.torrent
artifacts:
paths:
- images
expire_in: 2 weeks
tags:
- fablab