-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.gitlab-ci.yml
52 lines (50 loc) · 1.71 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
build_dev:
image: docker:24
stage: build
needs: []
before_script:
- i=0; while [ "$i" -lt 12 ]; do docker info && break; sleep 5; i=$(( i + 1 )) ; done
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" --build-arg CRAN_SOURCE=$CRAN_SOURCE --cache-from $CI_REGISTRY_IMAGE:latest .
- docker push --all-tags $CI_REGISTRY_IMAGE
only:
- dev
- master
build_master:
image: docker:24
stage: build
needs: ["build_dev"]
before_script:
- i=0; while [ "$i" -lt 12 ]; do docker info && break; sleep 5; i=$(( i + 1 )) ; done
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker tag $CI_REGISTRY_IMAGE:latest aghozlane/shaman
- docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
- docker push aghozlane/shaman
only:
- master
build_conda:
#image: continuumio/miniconda3:latest mutex issue
image: conda/miniconda3-centos7:latest
stage: build
needs: []
before_script:
- conda config --add channels bioconda
- conda config --add channels conda-forge
- conda config --add channels r
- conda config --add channels aghozlane
- conda config --set anaconda_upload yes
- conda update conda
- conda install -y conda-verify
- conda install -y anaconda-client
- conda install -y conda-build
- conda install -y git
script:
- anaconda login --username "$DOCKER_USER" --password "$DOCKER_PASS"
- conda build conda_inst
#- res=$(conda build conda_inst --output --output-folder .)
#- anaconda upload $res
only:
- tags