Skip to content
Snippets Groups Projects
Commit 600640c0 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Give pages script

parent da55dfe9
Branches
Tags
1 merge request!58Develop
...@@ -25,14 +25,16 @@ build_bages: ...@@ -25,14 +25,16 @@ build_bages:
- ./get-updated-badge-info.sh - ./get-updated-badge-info.sh
artifacts: artifacts:
paths: paths:
- ./public/release.svg - badges/release.svg
- ./public/pipeline.svg - badges/pipeline.svg
- ./public/nextflow.svg - badges/nextflow.svg
when: always when: always
expire_in: 3 months expire_in: 3 months
pages: pages:
stage: badges stage: badges
script:
- mv badges/ public/
artifacts: artifacts:
paths: paths:
- public - public
......
...@@ -6,7 +6,7 @@ current_pipeline_version=$(cat ./workflow/nextflow.config | grep -o version.* | ...@@ -6,7 +6,7 @@ current_pipeline_version=$(cat ./workflow/nextflow.config | grep -o version.* |
current_nextflow_version=$(cat ./workflow/nextflow.config | grep -o nextflowVersion.* | grep -oP "(?<=').*(?=')") current_nextflow_version=$(cat ./workflow/nextflow.config | grep -o nextflowVersion.* | grep -oP "(?<=').*(?=')")
echo "collecting badges" echo "collecting badges"
mkdir public mkdir badges
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/Latest%20Release-${latest_release_tag}-green?style=plastic > ./badges/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/Pipeline%20Version-${current_pipeline_version}-green?style=plastic > ./badges/pipeline.svg
curl --request GET https://img.shields.io/badge/Nextflow%20Version-${current_nextflow_version}-green?style=plastic > ./public/nextflow.svg curl --request GET https://img.shields.io/badge/Nextflow%20Version-${current_nextflow_version}-green?style=plastic > ./badges/nextflow.svg
\ No newline at end of file \ No newline at end of file
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