diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a2de25ad0b749c407d6bae24a0605cff86ea7680..ce27bf53e7ec379a8e64060154c75d91d7622263 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,12 +25,18 @@ build_bages: - ./get-updated-badge-info.sh artifacts: paths: - - release.svg - - pipeline.svg - - nextflow.svg + - ./public/release.svg + - ./public/pipeline.svg + - ./public/nextflow.svg when: always expire_in: 3 months +pages: + stage: badges + artifacts: + paths: + - public + getBag: stage: unit only: diff --git a/get-updated-badge-info.sh b/get-updated-badge-info.sh index 30fccec97ada69c270d2c46255b41e246d96dea9..ca87236db2974d685740b943b3ec8001f180b640 100644 --- a/get-updated-badge-info.sh +++ b/get-updated-badge-info.sh @@ -6,6 +6,7 @@ current_pipeline_version=$(cat ./workflow/nextflow.config | grep -o version.* | current_nextflow_version=$(cat ./workflow/nextflow.config | grep -o nextflowVersion.* | grep -oP "(?<=').*(?=')") echo "collecting badges" -curl --request GET https://img.shields.io/badge/Latest%20Release-${latest_release_tag}-green?style=plastic > release.svg -curl --request GET https://img.shields.io/badge/Pipeline%20Version-${current_pipeline_version}-green?style=plastic > pipeline.svg -curl --request GET https://img.shields.io/badge/Nextflow%20Version-${current_nextflow_version}-green?style=plastic > nextflow.svg \ No newline at end of file +mkdir public +curl --request GET https://img.shields.io/badge/Latest%20Release-${latest_release_tag}-green?style=plastic > ./public/release.svg +curl --request GET https://img.shields.io/badge/Pipeline%20Version-${current_pipeline_version}-green?style=plastic > ./public/pipeline.svg +curl --request GET https://img.shields.io/badge/Nextflow%20Version-${current_nextflow_version}-green?style=plastic > ./public/nextflow.svg \ No newline at end of file