ci: Compress with XZ

until <https://gitlab.com/gitlab-org/gitlab/-/issues/422584> is fixed.

Automatically register Distribution/Codename.
This commit is contained in:
Philipp Hahn 2023-08-19 09:49:38 +02:00
parent 836cf6fa1b
commit 7503e7f705
2 changed files with 11 additions and 2 deletions

View File

@ -66,8 +66,14 @@ upload:gitlab:
extends: .upload
rules:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_PROTECTED == "true"
script:
- dput --force gitlab univention-domain-join_*_amd64.changes
script: |
src=$(dpkg-parsechangelog -SSource)
ver=$(dpkg-parsechangelog -SVersion)
dist=$(dpkg-parsechangelog -SDistribution)
URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/debian_distributions?codename=${dist}"
curl --fail --head "$URL" ||
curl --fail --request POST --user "PRIVATE-TOKEN:${CI_JOB_TOKEN}" "$URL"
dput --force gitlab "${src}_${ver}_amd64.changes"
.launchpad:
extends: .upload

3
debian/rules vendored
View File

@ -12,3 +12,6 @@ export http_proxy=http://127.0.0.1:9
# python-univention-domain-join binary package.
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_builddeb:
dh_builddeb -- -Zxz