diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 34bb4219563e296e7c7894a7a7846a69b0797ea9..96d473c07469eeaf18771b5f122025457d0e5698 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 30de16f2802bad0dfaabf726cf01020ea9c8a133..13744d0f2d4a86bd74c0f0da798d00f45d4affc4 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 .