Commit cf19ecf7 authored by jcorvi's avatar jcorvi
Browse files

Update .gitlab-ci.yml

parent d13f8631
Pipeline #24762 failed with stage
in 3 seconds
variables:
DOCKER_USER: javicorvi
DOCKER_BUILD: $DOCKER_USER/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
#DOCKER_USER: javicorvi
#DOCKER_BUILD: $DOCKER_USER/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
DOCKER_REGISTRY: registry.gitlab.bsc.es
IMAGE_FULL_PATH: $DOCKER_REGISTRY/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
stages:
- build
build_docker_image:
......@@ -9,8 +11,12 @@ build_docker_image:
#- docker login -u javicorvi -p $DOCKER_PASS
#- docker build -t registry.gitlab.bsc.es/ .
#- docker push $DOCKER_BUILD
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.bsc.es
- docker build -t registry.gitlab.bsc.es/inb/etransafe/pretox-rest-api:develop .
- docker push registry.gitlab.bsc.es/inb/etransafe/pretox-rest-api:develop
#- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $DOCKER_REGISTRY
#- docker build -t registry.gitlab.bsc.es/inb/etransafe/pretox-rest-api:develop .
#- docker push registry.gitlab.bsc.es/inb/etransafe/pretox-rest-api:develop
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $DOCKER_REGISTRY
- docker build -t $IMAGE_FULL_PATH .
- docker push $IMAGE_FULL_PATH
tags:
- build
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