22 lines
580 B
YAML
Raw Normal View History

2019-10-23 22:37:56 +02:00
image: docker:stable
stages:
- build
variables:
2019-10-23 22:50:18 +02:00
IMAGE_NAME: registry.gitlab.com/wolutator/jupyter-scipy-database-extension
2019-10-23 22:37:56 +02:00
build:
stage: build
tags:
- hottis
- linux
- docker
script:
- VERSION=`cat VERSION`
2019-10-23 22:45:42 +02:00
- docker build --tag $IMAGE_NAME:$VERSION --tag $IMAGE_NAME:latest .
2019-10-23 22:37:56 +02:00
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $IMAGE_NAME:$VERSION
2019-10-23 22:45:42 +02:00
- docker push $IMAGE_NAME:latest
2019-10-23 22:37:56 +02:00