Commit 64a8236f authored by Simon Volpert's avatar Simon Volpert 🐧

use variables in docker remote

parent 13821ea6
Pipeline #1990 passed with stage
in 53 seconds
......@@ -17,11 +17,6 @@ stages:
build:
stage: build
script:
# Login to the registry. the variable is automatically set, build and push
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN omi-registry.e-technik.uni-ulm.de/oet36/docker_test
- docker build -t omi-registry.e-technik.uni-ulm.de/oet36/docker_test:$CI_BUILD_REF_NAME .
- docker push omi-registry.e-technik.uni-ulm.de/oet36/docker_test:$CI_BUILD_REF_NAME
# Login to the registry. the variable is automatically set, build and push
- TS=$(date +%Y%m%d%H%M)
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
......
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