Commit f1a212ff authored by Oliver Lippert's avatar Oliver Lippert

before_script

parent 8cb71514
Pipeline #1841 passed with stage
in 15 minutes and 7 seconds
stages:
- build
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN lw-scm.de:5500
build:
stage: build
......@@ -8,7 +11,6 @@ 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/docker-pmf:latest .
- docker push lw-scm.de:5500/lipperts-web/docker-pmf:latest
......@@ -19,6 +21,5 @@ 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/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
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