.gitlab-ci.yml 828 Bytes
Newer Older
1 2
# Que se ejecute solo el yml cuando el commit tiene un nombre en concreto: release...

3
stages:
4
 - build
5
 - test
6
  
7
build_image:
8
  stage: build
9
  before_script:
10
    - source credentials.sh
11
    - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $OEB_DOCKER_REGISTRY
12
  script:
13
    - echo $OEB_DOCKER_REGISTRY
14
    - cd container
15
    - docker build --no-cache -t $REGISTRY_DESTINATION .
16
  tags:
17
    - oeb_dockerhub
18 19 20
    
test_nextflow_files:
  stage: test
21
  before_script: 
22
    - source credentials.sh
23
  script:
24
    - pwd
25
    - echo $HOLA
26
    - echo $REGISTRY_DESTINATION
27
    - curl -fsSL get.nextflow.io | bash
28
    - ./nextflow run workflow-block/main.nf -bg -with-docker $REGISTRY_DESTINATION -profile test
29
    # if passed ...
30
    - docker push $REGISTRY_DESTINATION
31
    # check if it works
32
  tags:
33
    - oeb_dockerhub