From 83c58fd00ce8c6c46155c0ffdf05e451cdbf69af Mon Sep 17 00:00:00 2001 From: Nicolas Richart <nicolas.richart@epfl.ch> Date: Sun, 11 Aug 2024 14:05:29 +0200 Subject: [PATCH] Adding possibility to add releases --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 659e863..39e10c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,7 @@ workflow: - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS when: never - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + - if: $CI_COMMIT_TAG =~ /^v[0-9].*$/ variables: TERM: ansi @@ -213,9 +214,10 @@ spack:mksquashfs: #- .spack_cache script: - source ci/stack_env.sh - - mksquashfs ${STACK_LOCATION} ${stack}-${environment}-${SQUASHFS_ID}.sqfs - + - mkfir -p /squashfs-cache/releases/ + - mksquashfs ${STACK_LOCATION} /squashfs-cache/releases/${stack}-${environment}-${SQUASHFS_ID}-${CI_COMMIT_TAG}.sqfs needs: - job: spack:install - #ressource_group: mksquashfs timeout: 1h + rules: + - if: $CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /v[0-9]+.*/ -- GitLab