Commit 3de7a148 authored by Oliver Lippert's avatar Oliver Lippert

added CI

parent 0ae0d55e
Pipeline #5570 failed with stage
in 1 minute and 19 seconds
stages:
- build
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN lw-scm.de:5000
variables:
BASE: lw-scm.de:5000/lipperts-web/gitlab/runner/js
CONTAINER_TEST_IMAGE: $BASE:latest
CONTAINER_RELEASE_IMAGE: $BASE:$CI_BUILD_REF_NAME
build:
stage: build
tags:
- docker
only:
- master
script:
- docker build --pull -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE
build-tag:
stage: build
tags:
- docker
only:
- tags
script:
- docker pull $CONTAINER_TEST_IMAGE
- docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment