From f94c6237487f68bdbe5e0ad47dc9979d112f5716 Mon Sep 17 00:00:00 2001 From: Sonia Zorba <sonia.zorba@inaf.it> Date: Thu, 18 Nov 2021 12:17:20 +0100 Subject: [PATCH] CI: added configuration for tagged installer --- .gitlab-ci.yml | 12 ++++++++++-- config.properties.example | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fb8e224..a1715c6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,8 +51,6 @@ test_backend: upload_installer: stage: deploy - tags: - - shell tags: - shell only: @@ -60,3 +58,13 @@ upload_installer: script: - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file install.sh "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/TASMAN/latest/install.sh"' - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file install-jdk8.sh "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/TASMAN/latest/install-jdk8.sh"' + +upload_tagged_installer: + stage: deploy + tags: + - shell + rules: + - if: '$CI_COMMIT_TAG != null' + script: + - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file install.sh "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/TASMAN/${CI_COMMIT_TAG}/install-${CI_COMMIT_TAG}.sh"' + - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file install-jdk8.sh "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/TASMAN/${CI_COMMIT_TAG}/install-${CI_COMMIT_TAG}-jdk8.sh"' diff --git a/config.properties.example b/config.properties.example index 1d37d00..15f0db4 100644 --- a/config.properties.example +++ b/config.properties.example @@ -1,2 +1,2 @@ ucd_service_url=http://ia2-vo.oats.inaf.it/ucd/ -config_directory=/home/user/.tasman \ No newline at end of file +config_directory=/etc/tasman -- GitLab