diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b6c2f4..ed80537 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,9 +11,22 @@ latest: - export DEBEMAIL="NOREPLY@`hostname -d`" - mkdir -p builddir - uscan --overwrite-download --destdir builddir - - cd ../nextcloud-server-* + - cd ../nextcloud-server-25* - dpkg-buildpackage -rfakeroot - cd - ; cp ../nextcloud-server_*.deb . artifacts: paths: - '*.deb' + +up_to_date: + # This job will succeed if we are up to date and fail if there is a later + # version of Nextcloud that we don't know about. The failure may result in + # emails going out to the maintainers so they quickly know about the need + # to update the package (adding any dependencies, etc.) + stage: build + tags: [ docker ] + script: + - apt update && apt install -y devscripts + - rc=0 + - uscan --no-download || rc=$? + - if [ $rc -eq 0 ]; then echo "Newer version available"; exit 1; fi