Commit 46f17cce authored by Esther Vendrell Miras's avatar Esther Vendrell Miras

Update .gitlab-ci.yml

parent 83096a14
Pipeline #11008 failed
# Que se ejecute solo el yml cuando el commit tiene un nombre en concreto: release...
variables:
- OEB_DOCKER_REGISTRY="images.dev-openebench.bsc.es"
- CONTAINER_NAME="oeb_tcga_validation"
- REGISTRY_DESTINATION=$OEB_DOCKER_REGISTRY/$CI_REGISTRY_USER/$CONTAINER_NAME:$CI_COMMIT_SHORT_SHA
stages:
- build
- test
......@@ -8,9 +13,6 @@ build_image:
stage: build
before_script:
- source credentials.sh
- export OEB_DOCKER_REGISTRY="images.dev-openebench.bsc.es"
- export CONTAINER_NAME="oeb_tcga_validation"
- export REGISTRY_DESTINATION=$OEB_DOCKER_REGISTRY/$CI_REGISTRY_USER/$CONTAINER_NAME:$CI_COMMIT_SHORT_SHA
- echo $REGISTRY_DESTINATION
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $OEB_DOCKER_REGISTRY
script:
......@@ -22,18 +24,14 @@ build_image:
test_nextflow_files:
stage: test
before_script:
- source credentials.sh
- export OEB_DOCKER_REGISTRY="images.dev-openebench.bsc.es"
- export CONTAINER_NAME="oeb_tcga_validation"
- export REGISTRY_DESTINATION=$OEB_DOCKER_REGISTRY/$CI_REGISTRY_USER/$CONTAINER_NAME:$CI_COMMIT_SHORT_SHA
- echo $REGISTRY_DESTINATION
script:
- pwd
- curl -fsSL get.nextflow.io | bash
- echo $REGISTRY_DESTINATION
- curl -fsSL get.nextflow.io | bash
- ./nextflow run workflow-block/main.nf -bg -with-docker $REGISTRY_DESTINATION -profile test
# if passed ...
#- docker push $OEB_DOCKER_REGISTRY/$CI_REGISTRY_USER/$CONTAINER_NAME:$CI_COMMIT_SHORT_SHA
- docker push $REGISTRY_DESTINATION
# check if it works
tags:
- oeb_dockerhub
\ No newline at end of file
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