Skip to content
Snippets Groups Projects
Commit 06f97ad3 authored by Zitnik, Anze's avatar Zitnik, Anze
Browse files

Add docker push to MEDINA artifactory to CI script

parent 6f3d5cfb
Branches
Tags
No related merge requests found
......@@ -2,4 +2,7 @@ __pycache__/
*.pyc
*$py.class
.idea/
dump.rdb
\ No newline at end of file
dump.rdb
env/
venv/
......@@ -2,6 +2,8 @@ image: nexus-registry.xlab.si:5001/docker:dind
variables:
REGISTRY: registry-gitlab.xlab.si
MEDINA_REGISTRY: optima-medina-docker-dev.artifact.tecnalia.com
MEDINA_REG_PATH: wp3/t32
before_script:
- export SERVICE=$(grep SERVICE MANIFEST | cut -d '=' -f2)
......@@ -35,5 +37,11 @@ push:
- docker push $REGISTRY/medina/$SERVICE:$VERSION
- docker push $REGISTRY/medina/$SERVICE:latest
- docker logout $REGISTRY
- docker login $MEDINA_REGISTRY -u medina.fordevelopers@gmail.com -p AKCp8kqMZkcPRPGZhHBw7uKFsyifF1iHb2ZvbBy5PK88wD8EdeSHZqFsc4h1wp3M2oVYGazhv
- docker tag $REGISTRY/medina/$SERVICE:$VERSION $MEDINA_REGISTRY/$MEDINA_REG_PATH/$SERVICE:$VERSION
- docker tag $REGISTRY/medina/$SERVICE:$VERSION $MEDINA_REGISTRY/$MEDINA_REG_PATH/$SERVICE:latest
- docker push $MEDINA_REGISTRY/$MEDINA_REG_PATH/$SERVICE:$VERSION
- docker push $MEDINA_REGISTRY/$MEDINA_REG_PATH/$SERVICE:latest
- docker logout $MEDINA_REGISTRY
only:
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment