Commit 2b4d651c authored by Oliver Lippert's avatar Oliver Lippert

$BASE, $CONTAINER_TEST_IMAGE, $CONTAINER_RELEASE_IMAGE

parent f1a212ff
Pipeline #1842 passed with stage
in 20 minutes and 30 seconds
......@@ -4,6 +4,11 @@ stages:
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN lw-scm.de:5500
variables:
BASE: lw-scm.de:5500/lipperts-web/docker-pmf
CONTAINER_TEST_IMAGE: $BASE:latest
CONTAINER_RELEASE_IMAGE: $BASE:$CI_BUILD_REF_NAME
build:
stage: build
tags:
......@@ -11,8 +16,8 @@ build:
only:
- master
script:
- docker build -t lw-scm.de:5500/lipperts-web/docker-pmf:latest .
- docker push lw-scm.de:5500/lipperts-web/docker-pmf:latest
- docker build -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE
build-tag:
stage: build
......@@ -21,5 +26,5 @@ build-tag:
only:
- tags
script:
- docker build -t lw-scm.de:5500/lipperts-web/docker-pmf:$CI_BUILD_REF_NAME .
- docker push lw-scm.de:5500/lipperts-web/docker-pmf:$CI_BUILD_REF_NAME
\ No newline at end of file
- docker build -t $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