Commit Graph
79 Commits
Author SHA1 Message Date
Ximon EighteenandGitHub 011a4e541e Remove branch restrictions for CI eun. 2021-01-12 19:49:23 +01:00
Ximon Eighteen dcd7e6d991 Remove temp GH actions hack
Renaming the workflow file still didn't cause the run workflow button to appear for the CI workflow.
2021-01-08 12:58:33 +01:00
Ximon Eighteen a9d800279e GH actions temporary hack.
Per https://github.community/t/cant-trigger-workflow-manually/121740/48.
2021-01-08 12:56:28 +01:00
Ximon EighteenandGitHub dafb8a456a Remove temp GH Actions hack
The new action showed the run workflow button but the CI workflow still did not...
2021-01-08 12:46:04 +01:00
Ximon EighteenandGitHub bb31d8099f GH actions temporary hack
Per https://github.community/t/cant-trigger-workflow-manually/121740/53 and https://github.community/t/workflow-dispatch-workflow-not-showing-in-actions-tab/130088/15
2021-01-08 12:44:59 +01:00
Ximon EighteenandGitHub e3bb1120e8 Try out the new manual workflow invocation feature of GitHub Actions
Must be committed to the master branch according to the docs.
2021-01-08 12:13:56 +01:00
ximon18andGitHub 463c12ec85 FIX: use official Terraform GH Action instead of deprecated community action
Hopefully also addresses the failure with the community plugin due to the GH Actions security patch which discontinued the GH Actions add-path functionality.
2020-11-24 10:18:03 +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 2cf859d161 See if strange CI failures also happen in newer Ubuntu 2020-10-09 16:35:34 +02:00
Tim BruijnzeelsandGitHub fa608944e7 Update ci.yml
Show me the goods
2020-10-09 16:12:12 +02: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 a3d124a193 Run ci workflow on branch or PR, not both 2020-07-02 16:34:50 +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
Ximon Eighteen d0609a04c6 Update the ignore rule after the recent workflow file rename. 2020-06-16 16:09:16 +02:00
Ximon Eighteen 25b37e6690 Cleanup the e2e test GH workflow file after recent adjustments to run locally on the GH runner. Also rename the workflow file to reflect what it does. 2020-06-16 15:30:41 +02:00
ximon18andGitHub 714d8f9bd9 SSH key var references prevent e2e test running locally 2020-06-16 14:53:56 +02:00
ximon18andGitHub c8673fb428 docker-machine plugin is still needed when running e2e test locally 2020-06-16 14:51:28 +02:00
ximon18andGitHub 17c67ce661 Workflow typo fix. 2020-06-16 14:49:28 +02:00
ximon18andGitHub 6d6e8277c7 Does the localhost variant of the e2e test work? 2020-06-16 14:48:45 +02:00
ximon18andGitHub 9a88f9c40e Slightly bigger E2E test Droplet to keep RIPE NCC validator happy. 2020-06-16 13:41:30 +02:00
ximon18andGitHub 16799c3a8f Try an even smaller E2E test droplet. 2020-06-16 13:00:28 +02:00
ximon18andGitHub c0ee406acb Only trigger e2e tests on merge/pr to master. 2020-06-16 12:42:09 +02:00
ximon18andGitHub 40fc53d4d7 Try scaling the E2E droplet size down. 2020-06-16 12:18:23 +02:00
ximon18andGitHub 96f131fc08 FIX: python3-venv pkg not found. 2020-05-04 22:05:44 +02:00
ximon18andGitHub bfc9e46eac Activate weekly e2e test cache image update 2020-03-25 22:58:12 +01:00
ximon18andGitHub b0f954eef4 Periodically rebuild the E2E test cache image.
Note: The cron expression is set to a test value at present.
2020-03-25 22:24:55 +01:00
ximon18andGitHub 5b581a7124 Typo correction: workflos -> workflow. 2020-01-22 23:46:34 +01:00
ximon18andGitHub 4789dd70d9 FIX: Ensure CI build doesn't run on E2E workflow changes. 2020-01-22 23:46:08 +01:00
ximon18andGitHub 0e55b104c0 FIX: Ensure the E2E test runs. 2020-01-22 23:44:46 +01:00
ximon18andGitHub e3f768c56d Move the Krill E2E tests from the rpki-deploy repo to the Krill repo. (#181) 2020-01-22 14:17:15 +01:00
ximon18andGitHub ed035da2be Run only GitHub Actions jobs relevant to the changes that have been made. 2020-01-22 12:02:09 +01:00
ximon18andGitHub 942f6a9fe9 Use matching E2E test framework branch if exists (#183)
Use matching E2E test framework branch if it exists.
2020-01-22 11:31:32 +01:00
Ximon Eighteen e5bb4dcb06 The modified Dockerfile is not needed if we support the configurable base image in the Krill repo itself. 2020-01-20 11:06:17 +01:00