From 9d00cbeb5569116888f7378399648261e8e0fe98 Mon Sep 17 00:00:00 2001 From: Julian Rother <julian@cccv.de> Date: Sat, 11 Sep 2021 16:28:27 +0200 Subject: [PATCH] Publish Debian packages to packages.cccv.de Also fixed architecture of Debian packages. Co-authored-by: nd <nd@cccv.de> --- .gitlab-ci.yml | 11 ++++++++++- debian/control | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 34bb4219..96d473c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,8 @@ variables: DEBIAN_FRONTEND: noninteractive GIT_SUBMODULE_STRATEGY: normal PYTHONPATH: deps/ldapalchemy + APT_API_URL: https://packages.cccv.de + APT_REPO: uffd before_script: - python3 -V @@ -199,6 +201,13 @@ publish:pip: publish:apt: extends: .publish script: - - exit 0 + - export DEBPATH="$(echo build/*.deb)" + - echo Upload deb file, add it to repo and clean up upload + - curl --user "${APTLY_API_USER}:${APTLY_API_PW}" -X POST -F file=@"$DEBPATH" "${APT_API_URL}/api/files/${APT_REPO}-ci-upload-${CI_JOB_ID}" + - curl --user "${APTLY_API_USER}:${APTLY_API_PW}" -X POST "${APT_API_URL}/api/repos/${APT_REPO}/file/${APT_REPO}-ci-upload-${CI_JOB_ID}" + - curl --user "${APTLY_API_USER}:${APTLY_API_PW}" -X DELETE "${APT_API_URL}/api/files/${APT_REPO}-ci-upload-${CI_JOB_ID}" + - echo Update published repo for all distros + - 'curl --user "${APTLY_API_USER}:${APTLY_API_PW}" -X PUT -H "Content-Type: application/json" --data "{ }" "${APT_API_URL}/api/publish/uffd/buster"' + - 'curl --user "${APTLY_API_USER}:${APTLY_API_PW}" -X PUT -H "Content-Type: application/json" --data "{ }" "${APT_API_URL}/api/publish/uffd/bullseye"' dependencies: - build:apt diff --git a/debian/control b/debian/control index 30de16f2..13744d0f 100644 --- a/debian/control +++ b/debian/control @@ -12,7 +12,7 @@ Homepage: https://git.cccv.de/uffd/uffd Vcs-Git: https://git.cccv.de/uffd/uffd.git Package: uffd -Architecture: any +Architecture: all Depends: ${misc:Depends}, # Unlike most debian python packages, we depend directly on the deb packages and do not want to populate our dependencies from the setup.py . -- GitLab