Commit 52e01d35 authored by jcorvi's avatar jcorvi
Browse files

Update .gitlab-ci.yml

parent 77b6e1b0
Pipeline #24847 failed with stage
in 2 minutes and 27 seconds
variables:
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_PATH:$CI_COMMIT_REF_NAME
stages:
- build
build_docker_image:
stage: build
script:
- docker login -u javicorvi -p $DOCKER_PASS
- docker build -t $DOCKER_BUILD .
- docker push $DOCKER_BUILD
- 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
\ No newline at end of file
- 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