forked from epi2me-labs/wf-artic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
65 lines (63 loc) · 2.66 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
53
54
55
56
57
58
59
60
61
62
63
64
65
include:
- project: "epi2melabs/ci-templates"
file: "wf-containers.yaml"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq --samples test_data/sample_sheet.csv"
NF_IGNORE_PROCESSES: "checkSampleSheet,combineGenotypeSummaries,genotypeSummary,report_no_data"
CI_FLAVOUR: "new"
# IMAGE_TAG: "NO_UPDATE"
# check-versions:
# stage: pre-custom-builds
# image: conda/miniconda3:latest
# needs: []
# script:
# - apt-get update && apt-get -y install gcc
# - pip install cachetools==4.1.0 docker==4.2.0 PyGithub==1.54 requests==2.20.0 semver==2.13.0 packaging
# - python3 bin/check_aux_versions.py --docker_registry 'ontresearch/pangolin' --github_repository 'cov-lineages/pangolin' --token ${LABS_BOT_GH_TOKEN} --tool pangolin -p v > ./pangolin.txt
# - python3 bin/check_aux_versions.py --docker_registry 'ontresearch/nextclade' --github_repository 'nextstrain/nextclade' --token ${LABS_BOT_GH_TOKEN} --tool nextclade > ./nextclade.txt
# artifacts:
# paths:
# - pangolin.txt
# - nextclade.txt
# expire_in: 1 day
# rules:
# - if: '$CI_PIPELINE_SOURCE == "schedule"'
#
# .release:
# stage: custom-builds
# needs: ['check-versions']
# before_script:
# - export IMAGE_TAG=`cat ${FILE_NAME} | grep ACTION | cut -f2 -d":"`
# - if [ "${IMAGE_TAG}" == "NO_UPDATE" ]; then echo "${IMAGE_NAME} already at latest version"; exit 0; fi;
# - IMAGE_DOCKERFILE="${IMAGE_DOCKERFILE:-Dockerfile}"
# - if [ -z "${IMAGE_NAME}" ]; then "IMAGE_NAME was not set"; exit 1; fi;
# - if [ -z "${IMAGE_TAG}" ]; then "IMAGE_TAG was not set"; exit 1; fi;
# - echo "Building auxiliary container with:"
# - echo " - Dockerfile:'${IMAGE_DOCKERFILE}'"
# - echo " - Image name:'${IMAGE_NAME}'"
# script:
# - !reference [.install, glibc-alpine]
# - !reference [.install, awscli]
# - echo ${DOCKERHUB_TOKEN} | docker login --username epi2melabs --password-stdin
# - LATEST="${DOCKERHUB_NAMESPACE}/${IMAGE_NAME}:${IMAGE_TAG}"
# - BUILD_CMD="docker build --no-cache -t ${LATEST} -f ${IMAGE_DOCKERFILE} . --build-arg IMAGE_TAG=${IMAGE_TAG}"
# - echo "${BUILD_CMD}"
# - ${BUILD_CMD}
# - docker push ${LATEST}
# rules:
# - if: '$CI_PIPELINE_SOURCE == "schedule"'
# when: on_success
#
# release-pangolin:
# extends: .release
# variables:
# IMAGE_NAME: "pangolin"
# FILE_NAME: "pangolin.txt"
# IMAGE_DOCKERFILE: "Dockerfile_pangolin"
#
# release-nextclade:
# extends: .release
# variables:
# IMAGE_NAME: "nextclade"
# FILE_NAME: "nextclade.txt"
# IMAGE_DOCKERFILE: "Dockerfile_nextclade"