Commit f94c6237 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

CI: added configuration for tagged installer

parent 72577a25
Loading
Loading
Loading
Loading
+10 −2
Original line number Original line Diff line number Diff line
@@ -51,8 +51,6 @@ test_backend:


upload_installer:
upload_installer:
  stage: deploy
  stage: deploy
  tags:
    - shell
  tags:
  tags:
    - shell
    - shell
  only:
  only:
@@ -60,3 +58,13 @@ upload_installer:
  script:
  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.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"'
    - '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"'
+1 −1
Original line number Original line Diff line number Diff line
ucd_service_url=http://ia2-vo.oats.inaf.it/ucd/
ucd_service_url=http://ia2-vo.oats.inaf.it/ucd/
config_directory=/home/user/.tasman
config_directory=/etc/tasman
 No newline at end of file