gprolog-base-env/.gitlab-ci.yml

23 lines
611 B
YAML
Raw Normal View History

2019-03-18 15:04:22 +01:00
image: docker:stable
stages:
- build
variables:
2020-06-11 10:32:55 +00:00
IMAGE_NAME: registry.hottis.com/wolutator/gprolog-base-env
2019-03-18 15:04:22 +01:00
build:
stage: build
tags:
- hottis
- linux
- docker
script:
- VERSION=`cat VERSION`
- echo "Version is $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