hkd/.gitlab-ci.yml
2019-06-27 13:30:52 +02:00

22 lines
552 B
YAML

image: docker:stable
stages:
- build
variables:
IMAGE_NAME: registry.gitlab.com/wolutator/hkd
build:
stage: build
tags:
- hottis
- linux
- docker
script:
- VERSION=`cat VERSION`
- docker build --tag $IMAGE_NAME:latest --tag $IMAGE_NAME:$VERSION .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $IMAGE_NAME:latest
- docker push $IMAGE_NAME:$VERSION