Commit Graph
48 Commits
Author SHA1 Message Date
ximon18 178ef88892 Minor comment corrections in the pkg workflow. 2022-08-22 09:36:53 +02:00
Ximon EighteenandGitHub a1714139af Add packages for Raspberry Pi 1b (ARMv6 HF) (#814) 2022-08-09 23:30:23 +02:00
Ximon EighteenandGitHub 5cddacdef2 Extend Docker publishing to create ARM architecture images and a multi-arch manifest (#773)
* Move the Docker workflow into the main Packaging workflow.
* Extend the Dockerfile to support building from precompiled externally supplied binaries as well as building from sources (to support the cross-compilation case).
* Extend the workflow to support cross-compilation for both Docker images and traditional packages. (#764)
* Extend the workflow to publish a multi-arch Docker manifest.
* Prefix tmp artifact names with 'tmp-' so that packages.nlnetlabs.nl scripts can easily ignore them.
* Use latest upload/download artifact action versions.
* Upload built Docker images as GitHub Actions artifacts.
* Switch to the vault package repository for CentOS 8 now that it is EOL.
* Don't delete cross compiled binaries during pkg job as multiple invocations of the matrix need to access the same artifact.
2022-08-09 22:34:13 +02:00
ximon18 0ed25d1370 Disable testing of the Debian Stretch package as it is no longer available on images. 2022-07-19 11:16:38 +02:00
ximon18 d9a3823d08 krillup 0.9.6 was released for Ubuntu xenial/bionic/focal, Debian stretch/buster/bullseye and CentOS 7/8, so we should now be able to test upgrading on those systems. 2022-07-19 10:21:32 +02:00
ximon18 321516dec5 Minor comment fix. 2022-07-19 10:04:36 +02:00
Ximon EighteenandGitHub dde7041e79 Package Krill for Ubuntu 22.04 Jammy Jellyfish (#838)
* Package Krill for Ubuntu 22.04 Jammy Jellyish
* Depend on libssl3 for Ubuntu 22.04 instead of libssl1.1
2022-07-19 09:17:20 +02:00
Tim Bruijnzeels 4e1df9294a Merge 0.9.5-rc8 (main) into dev 2022-03-30 14:05:02 +02:00
Tim BruijnzeelsandXimon Eighteen 5780c771f6 Support prepare-upgrade krill: prepares the new data to migrate. (#777)
* Support "prepare-upgrade" through "krillup" binary.
* Package the new `krillup` binary and man page into a separate DEB/RPM.
* Also switches to building in a Rocky Linux container due to repeated CentOS 8 vault repo timeouts.
* Mention correct config file location on CLI help.
* Remove incorrect reference to non-existent help subcommand for krillup.
* Add locking to upgrade process.

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
2022-02-18 18:02:55 +01:00
Ximon EighteenandTim Bruijnzeels 28c817cf24 Don't attribute the DEB package changelog maintainer to the personal GitHub details of the PR merging user, instead attribute it to RPKI team. 2022-02-18 18:02:55 +01:00
Ximon EighteenandTim Bruijnzeels 226cbe7750 Switch to the vault package repository for CentOS 8 now that it is EOL. 2022-02-18 18:02:55 +01:00
Ximon EighteenandTim Bruijnzeels 4e7a4e9c75 We use -dev as the next version label now, not -bis.
As requested by @timbru.
2022-02-18 18:02:55 +01:00
Ximon EighteenandGitHub 478e05ff25 Remove accidentally left behind case block in the pkg workflow. 2022-01-24 10:55:31 +01:00
Ximon Eighteen 366ab8e109 Merge branch 'main' into dev 2022-01-19 14:53:14 +01:00
Ximon Eighteen f36a93c18a Enable running the pkg workflow on demand rather than on every PR. 2022-01-19 14:53:08 +01:00
Ximon Eighteen f8e3443883 Merge branch 'main' into dev 2022-01-19 14:52:02 +01:00
Ximon Eighteen 36c3bc354c When packaging handle the workflow_dispatch event and use a valid fallback email address. 2022-01-19 14:51:47 +01:00
Ximon EighteenandGitHub c23853b036 DEB packaging for ARM (#755)
Cross compile DEB packages for armhf/ARMv7 and aarch64/ARM64 using the Rust Tools team cargo cross tool.
Tested on Raspbian 11/Debian Bullseye on a Raspberry Pi 4b (armhf) and Armbian/Debian Buster on a Rock64 (aarch64).
Doesn't yet support stripping of cross compiled binaries (revisit this when Cargo supports the Rust 1.58.0 strip feature) or automated determination of DEB dependencies for cross compiled binaries.
Also removes a duplicate `--system` argument to `useradd` in the RPM `postinst` script.
2022-01-19 12:48:18 +01:00
Ximon EighteenandGitHub 4769876e36 Bump cargo-deb and cargo-generate-rpm. (#758) 2022-01-13 16:30:28 +01:00
Ximon EighteenandGitHub c1aadd421f Also run packaging checks on PRs to the dev branch. 2022-01-12 11:09:26 +01:00
Ximon EighteenandTim Bruijnzeels 0eb81dacc9 Upgrade to actions/checkout v2 to avoid potential security issue (see #746). 2022-01-12 10:22:34 +01:00
Ximon EighteenandGitHub 19c64fa2f9 No final Krill release has been published for bullseye yet 2021-09-22 16:45:15 +02:00
Ximon EighteenandGitHub 8a9e5a1a4f Fix and enable RPM upgrade testing. 2021-09-22 16:24:42 +02:00
Ximon EighteenandGitHub 2141226c6c Patch workflow for cargo-generate-rpm issue #21 (#613) (#617) 2021-08-16 14:46:28 +02:00
Ximon EighteenandGitHub eca1eb061d RPM packaging (#536) 2021-06-29 10:48:34 +02:00
Ximon Eighteen 72c111018f Update GitHub workflows to use the new main branch name. 2021-05-12 11:55:07 +02:00
Ximon EighteenandGitHub 2ca2228405 Use --locked everywhere to ensure that Krill builds consistently use the same dependency versions as those locked by the Cargo.lock file. (#467) (#468) 2021-04-12 09:47:42 +02:00
Ximon EighteenandGitHub 82146ddc44 Match on the new dev branch naming strategy: plus -> bis.
Otherwise "dev" builds are given a version that Debian thinks is older rather than newer so apt upgrade fails.
2021-03-23 10:49:35 +01:00
Ximon Eighteen 4e02065d04 FIX: Use new GH Actions mechanisms for managing $PATH and environment variables, due to deprecation by GH. 2020-11-18 16:44:45 +01:00
ximon18andGitHub 4656c5c224 Update the pkg workflow to match improvements and fixes made in the Routinator project. (#318)
- Switch to O/S name based jobs instead of O/S numeric version to support Debian bullseye (which doesn't yet have a numeric Docker image tag and so cannot be run in a container by number, only by name).
- Switch to official cargo-deb release that has the required systemd unit functionality.
- Drop usage of empty 'job.container.image' cache key component.
- Work around lack of support for `date --rfc-email` in older O/S versions.
- Use a simpler and more consistent approach for waiting for network up in LXC containers.
- Ensure sudo is available.
2020-09-09 21:49:35 +02:00
ximon18andGitHub c194aa0aa8 Upgrade to latest cargo-deb. (#303) 2020-08-12 20:43:15 +02:00
ximon18andGitHub 3c31e62636 Correct outdated comment. 2020-08-03 16:01:11 +02:00
ximon18andGitHub 52b7a8057e Use the systemd support now available in the official cargo deb repo (with explicit rev as no release tag yet). (#298) 2020-08-03 15:36:53 +02:00
ximon18andGitHub 36d8ba170d Typo correction: create -> crate 2020-08-03 15:33:30 +02:00
ximon18andGitHub e40131aaea Deb pkg fixes (#288)
Various Debian packaging fixes and improvements: (note: depends on a fork of cargo deb as some cargo deb PRs are still pending)
  - Fix: Krill will now be restarted when the package is upgraded (also when upgrading from v0.7.0/v0.7.1/v0.7.2/v0.7.3 packages) (fixes #280).
  - Fix: systemd warning after apt remove (fixes #275).
  - Fix: Lintian error "manpage-not-compressed" (via cargo deb PR 133).
  - Fix: Lintian error "debian-changelog-file-missing" (via cargo deb PR 137). Note: the changelog is only a minimal pointer to the GitHub release notes, attributed to the user doing the pull requestor or merge to master.
  - Fix: Lintian error "copyright-without-copyright-notice".
  - Fix: Cargo Deb "warning: extended-description field missing" (via cargo deb PR 138).
  - Fix: Incorrect systemd unit "vendor preset: enabled" (via PR 276).
  - Fix: Remove unused /etc/krill directory created by the "ConfigurationDirectory" systemd unit key.
Also:
  - Use debhelper dh_installsystemd style support for systemd unit installation (based on official Debian debhelper dh_installsystemd autoscripts & logic) instead of incomplete/erroneous hand crafted maintainer scripts (via cargo deb PR 135).
  - Uses systemd unit masking on package removal as recommended (see PR 276).
  - Enables bash echo output for pkg workflow run steps.
  - Verfies built deb packages with Lintian.
  - Less repetition in Cargo.toml.
2020-07-30 09:25:03 +02:00
ximon18andGitHub b2ded8873f Run Lintian on produced .deb packages. (#292)
Run Lintian on produced .deb packages but inform only, do not fail the build.
2020-07-24 15:19:11 +02:00
ximon18andGitHub a59ee97e09 Support 'pre-release' build labels in .deb packages (#287)
Correctly handle dashes in the Krill version number so that 'pre-release' 'tags' appended to the version number do not cause the package to be considered newer than a final untagged version number. Treat `-plus` as an exception denoting a build that is indeed newer.
2020-07-24 15:09:27 +02:00
ximon18andGitHub 29e8bf22e4 Run pkg workflow on branch or PR, not both (#278)
See: https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662
2020-07-02 16:31:29 +02:00
ximon18andGitHub 898068b834 Proper pkg naming (#269)
Ensure deb packages have unique name/version/arch triples per Debian Policy and Debian repo layout requirements.
2020-06-27 10:59:48 +02:00
Ximon Eighteen adbdbc3112 Re-enable debian 10 packaging with LXC fix to use security nesting. 2020-06-23 14:13:22 +02:00
Ximon Eighteen d8f8ff87ee Disable Debian 10 packaging until the systemctl start "Failed to set up mount namespacing: Permission denied" issue is fixed. 2020-06-23 13:58:27 +02:00
Ximon Eighteen d3b50ff26d More comments. Revert to sleep hack workaround for Debian 9/10. 2020-06-23 13:38:00 +02:00
Ximon Eighteen f01b8ec0c4 Additional comments. 2020-06-23 13:32:42 +02:00
Ximon Eighteen 784e020745 O/S specific cloud-init waiting. 2020-06-23 13:08:17 +02:00
Ximon Eighteen 43df33b827 RPM packaging is not ready for release yet. 2020-06-23 12:56:39 +02:00
Ximon Eighteen 8431642a4a Create Krill DEB and RPM packages via GH actions:
- Assumes that the target system has ca-certificates installed already.
  - Vendor OpenSSL to support Ubuntu 16.04 which only has OpenSSL 1.0.0.
  - Use GH caching to avoid repeat compilation of unchanging cargo deb and krill dependencies.
  - Build in Docker containers as GH runners have too many non-standard packages and libraries pre-installed.
  - Sanity check the created DEB in targeted O/S versions via LXC/LXD containers (for systemd support).
2020-06-23 12:55:17 +02:00
ximon18 c9c3019cfe Commented the packaging workflow. 2020-06-23 12:28:17 +02:00
Ximon Eighteen 7031576f63 Create a Krill DEB package via GH actions:
- Assumes that the target system has ca-certificates installed already.
  - Vendor OpenSSL to support Ubuntu 16.04 which only has OpenSSL 1.0.0.
  - Use an Ubuntu 16.04 compatible version of libgcc1 (don't use cargo-deb $auto
    depends as the GH 16.04 runner has a much newer libgcc1 package than stock
    Ubuntu 16.04).
  - Use GH caching to avoid repeat compilation of unchanging cargo deb and krill
    dependencies.
  - Sanity check the created DEB in targeted O/S versions.
2020-06-23 12:28:17 +02:00