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

24 lines
695 B
YAML
Raw Normal View History

2019-03-18 15:04:22 +01:00
image: docker:stable
stages:
- build
variables:
2020-06-11 10:35:28 +00:00
IMAGE_NAME: registry.hottis.de/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 .
2020-06-11 10:37:32 +00:00
- echo docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
2019-03-18 15:04:22 +01:00
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $IMAGE_NAME:latest
- docker push $IMAGE_NAME:$VERSION