From 99bfb15af74d9b82119c5ad2f76c3eb69ae3fcb9 Mon Sep 17 00:00:00 2001 From: jswaelens <jonathan.swaelens@opensides.be> Date: Mon, 19 Mar 2018 11:54:38 +0100 Subject: [PATCH] Merge branch '5774-add-artifcats-to-build' into '1.3-dev' Resolve "Add artifcats to build" Closes #5774 See merge request fusiondirectory/fd!169 (cherry picked from commit c1b30898fd65ca1d00e64a848e7065ed462e3a0c) 52adb9e1 :sparkles: feat(gitlab-ci): Add release tarballs in CI --- .gitlab-ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e10cb795..9d760e047 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,7 @@ stages: - test-php - test-manpages - transifex - - build-tarballs + - tarballs # Generate perlcritic rapport create_perlcritic_rapport: @@ -110,10 +110,20 @@ update-transifex: - tx push -f -s -t --skip --no-interactive build-tarballs: - stage: build-tarballs + stage: tarballs script: - tar -cvzf fusiondirectory-core.tar.gz * artifacts: paths: - fusiondirectory-core.tar.gz expire_in: 1h + +build-release: + stage: tarballs + only: + - tags + script: + - tar -cvzf fusiondirectory-core-$(grep '*' Changelog | head -n1 | cut -d ' ' -f3).tar.gz * + artifacts: + paths: + - fusiondirectory-core-$(grep '*' Changelog | head -n1 | cut -d ' ' -f3).tar.gz -- GitLab