Commit 4e774955 authored by Lambert Theisen's avatar Lambert Theisen 🔥

Add docker push for devs

parent 20331a27
Pipeline #307429 canceled with stages
......@@ -30,7 +30,7 @@ prepare:docker:
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME .
# --cache-from $CI_REGISTRY_IMAGE:latest
# --cache-from $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
# - docker push $CI_REGISTRY_IMAGE:latest
# when: manual
tags:
......@@ -108,6 +108,26 @@ test:pytest:
# deploy
# **************************************************************************** #
.deploy:docker:
stage: deploy
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
tags:
- shell
deploy:docker:dev:
extends: .test
script:
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
deploy:docker:latest:
extends: .test
script:
- docker push $CI_REGISTRY_IMAGE:latest
only:
- master
- tags
deploy:latex:
stage: deploy
image:
......
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