Commit 13821ea6 authored by Simon Volpert's avatar Simon Volpert 🐧

Update .gitlab-ci.yml

parent b677664e
Pipeline #1989 failed with stage
in 43 seconds
......@@ -21,3 +21,12 @@ build:
- 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
- docker build -t $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
#- docker tag $CI_REGISTRY_IMAGE:$TS $CI_REGISTRY_IMAGE:$TS
#- docker push $CI_REGISTRY_IMAGE:$TS
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