From 72d8bae65b74000c7c6f24e5a6ccb303e3c67b30 Mon Sep 17 00:00:00 2001 From: wicadmin Date: Tue, 29 Sep 2020 08:58:08 +0000 Subject: [PATCH] ci: create release tarball and hash as build artifacts --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f8baede6..af67083f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -146,3 +146,10 @@ build-default: - make check - make install - make distcheck + - sha256sum $CI_PROJECT_NAME-*.tar.xz | awk '{print $1;}' > pkg_hash.txt + artifacts: + name: "$CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA" + paths: + - /builds/$CI_PROJECT_ROOT_NAMESPACE/$CI_PROJECT_NAME/$CI_PROJECT_NAME-*.tar.xz + - /builds/$CI_PROJECT_ROOT_NAMESPACE/$CI_PROJECT_NAME/pkg_hash.txt + expire_in: 2 days