ci: build with artifacts only in master and tags

This commit is contained in:
Aleksander Morgado
2021-05-26 12:28:50 +02:00
parent 342b0ba648
commit 58f28c2a45

View File

@@ -199,9 +199,7 @@ build-default:
- .fdo.distribution-image@ubuntu
- .common_variables
only:
- master
- merge_requests
- tags
- schedules
script:
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
@@ -231,6 +229,17 @@ build-default:
- make check
- make install
- make distcheck
build-default-artifacts:
stage: build
extends:
- .fdo.distribution-image@ubuntu
- .common_variables
only:
- master
- tags
script:
- !reference [build-default, script]
- sha256sum $CI_PROJECT_NAME-*.tar.xz | awk '{print $1;}' > pkg_hash.txt
artifacts:
name: "$CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA"