ci: build with artifacts only in master and tags
This commit is contained in:
@@ -199,9 +199,7 @@ build-default:
|
|||||||
- .fdo.distribution-image@ubuntu
|
- .fdo.distribution-image@ubuntu
|
||||||
- .common_variables
|
- .common_variables
|
||||||
only:
|
only:
|
||||||
- master
|
|
||||||
- merge_requests
|
- merge_requests
|
||||||
- tags
|
|
||||||
- schedules
|
- schedules
|
||||||
script:
|
script:
|
||||||
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
|
- git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
|
||||||
@@ -231,6 +229,17 @@ build-default:
|
|||||||
- make check
|
- make check
|
||||||
- make install
|
- make install
|
||||||
- make distcheck
|
- 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
|
- sha256sum $CI_PROJECT_NAME-*.tar.xz | awk '{print $1;}' > pkg_hash.txt
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA"
|
name: "$CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA"
|
||||||
|
Reference in New Issue
Block a user