Commit 274d2461 authored by Oliver Lippert's avatar Oliver Lippert
Browse files

Update .gitlab-ci.yml

parent 75de0f3a
Pipeline #2787 passed with stage
in 13 minutes and 32 seconds
stages:
- build
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN lw-scm.de:5500
variables:
BASE: lw-scm.de:5500/lipperts-web/gitlab-runner-maven
CONTAINER_TEST_IMAGE: $BASE:latest
CONTAINER_RELEASE_IMAGE: $BASE:$CI_BUILD_REF_NAME
build:
stage: build
tags:
......@@ -8,9 +16,8 @@ build:
only:
- master
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN lw-scm.de:5500
- docker build -t lw-scm.de:5500/lipperts-web/gitlab-runner-maven:latest .
- docker push lw-scm.de:5500/lipperts-web/gitlab-runner-maven:latest
- docker build --pull -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE
build-tag:
stage: build
......@@ -19,6 +26,6 @@ build-tag:
only:
- tags
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN lw-scm.de:5500
- docker build -t lw-scm.de:5500/lipperts-web/gitlab-runner-maven:$CI_BUILD_REF_NAME .
- docker push lw-scm.de:5500/lipperts-web/gitlab-runner-maven:$CI_BUILD_REF_NAME
\ No newline at end of file
- docker pull $CONTAINER_TEST_IMAGE
- docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE
\ No newline at end of file
Supports Markdown
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