Commit graph

30 commits

Author SHA1 Message Date
Martin Pitt
bd082383cf workflows: Move tasks-container-update to Sunday night
We previously ran tasks-container-update and cockpit-lib-update at the
same time, which sometimes collides. Move it to the night between Sunday
and Monday instead, so that we have the updates ready for us to inspect
when we start our week.
2024-03-26 10:50:06 +01:00
Jelle van der Waa
3c734e03ac workflows: add tasks-container-update workflow
This workflow tries to update our cockpit CI container on a weekly
interval.
2024-03-19 11:02:45 +01:00
Allison Karlitskaya
58df999d82 misc: move to new tasks container location 2024-03-18 11:56:00 +01:00
Martin Pitt
0009f07a2c workflows: Bump action-release to get github-script@v7
This gets rid of the obsolete node.js 16. See
7d2e265738
2024-02-27 11:14:46 +01:00
Martin Pitt
6e1427493a workflows: Switch release to cockpit/tasks container
The unit-tests container was dropped in
f16f1fc14b

Also switch the template to current actions/checkout version.
2024-02-20 13:32:19 +01:00
Jelle van der Waa
5966bc24be .github: don't run integration tests on actions changes 2024-02-09 09:23:59 +01:00
dependabot[bot]
8256d6f18f build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-07 19:09:43 +01:00
Jelle van der Waa
bf4889042a github: allow dependeabot to update github workflow actions
Github usually updates their actions once a while and then warns about a
node env getting deprecated in runs. Which is not super easily spotted
by a developer until it's too late, so let's like npm let dependabot
handle updating.
2024-02-07 19:00:16 +01:00
Martin Pitt
bb4c60ee3a dependabot: Run in our evenings, reduce limit
So far the daily updates tend to run in our mornings between 7:00 and
8:00, which blocks our CI for a long time, and thus collides with
developers sending PRs. Move them to the evening instead, when they can
use the quiet bots time.

Also reduce the number of parallel PRs from 5 to 3. Parallel ones always
need to be rebased, and thus are very expensive. We still want to be
able to have a complicated PatternFly PR open for several days without
blocking other updates.
2023-10-11 12:17:34 +02:00
Katerina Koukiou
558703a24b github: replace npm-update workflow with dependabot
https://docs.github.com/en/code-security/dependabot/working-with-dependabot
2023-09-15 16:36:11 +02:00
Justin Stephenson
e3a8c9d17c
workflows: Pacify git's permission check in release workflow
"fatal: detected dubious ownership in repository at..."
2023-05-19 18:18:24 +02:00
Martin Pitt
b60dd6f945 workflows: Explicitly set minimal token permissions
This will allow us to set the default token permissions to restricted,
and thus avoid accidentally introducing over-privileged new workflows.
2023-04-20 11:05:15 +02:00
Martin Pitt
3bc60dd9bb workflows: Run on ubuntu-latest
That is Ubuntu 22.04 now. Avoid letting this get out of date.

Taken from eb2b320c95
2023-04-20 11:05:15 +02:00
Jelle van der Waa
a68429fad0 .github: add Cockpit library update action
This action works similar to the npm-update workflow, it creates a PR
every Thursday (usually after the Cockpit release) to update the
COCKPIT_REPO_COMMIT to the latest version.
2023-04-17 18:00:26 +02:00
Jelle van der Waa
02771f6e37 .github: update checkout action to v3 2023-04-17 16:14:49 +02:00
Jelle van der Waa
3cb5cb96de .github: update release action workflow
Our latest action-release workflow no longer uses a deprecated
github-script version.
2023-02-08 14:31:22 +01:00
Martin Pitt
f5faff051b Move release from cockpituous to action-release and packit
This gets rid of our "release" environment with high-profile secrets,
and the cockpituous/release infra.

The upstream release uses our shared
https://github.com/cockpit-project/action-release/ action.
2022-06-07 17:09:25 +02:00
Martin Pitt
c639ffc276 Move example COPR release to packit
This replaces the cockpituous job.
2022-05-03 10:30:13 +02:00
Matej Marusak
e91487b558 workflows: Split npm-update to PF and non PF tasks
Run PF update every Monday and anything else try to update on Tue, Thu and Sat.
2022-04-13 10:39:32 +02:00
Martin Pitt
b2379f78e2 workflows: Drop livetest
We have not used that in a long time, and it stopped working a while
ago.
2022-04-05 18:43:14 +02:00
Garrett LeSage
7be9253229 Fix spelling error found by codespell 2021-12-14 12:15:43 +01:00
Martin Pitt
28466f7217 webpack: Move from sassc to Dart sass
Fixes #475
2021-07-27 09:42:10 +02:00
Martin Pitt
4d9dd8c11e workflows: Run release workflow in release environment
This partitions secrets and limits their potential exposure/leakage.

This environment can be created with github-upload-action-secrets in [1].

[1] https://github.com/cockpit-project/bots/pull/2164
2021-07-06 09:38:18 +02:00
Katerina Koukiou
66c6e96406
livetest: fix cloning of repo
Previously it was checking out origin/master not the PR's branch.
2021-02-24 10:48:36 +01:00
Katerina Koukiou
6f04071d88
Introduce a github action which builds a cockpit preview when requested
It currently reacts to /livetest comments on PRs and builds cockpit from
the PR's checkout. Then serves it on logs.cockpit-project.org on a port
specified on a follow-up comment to the /livetest.

Cockpit developers can now utilize this workflow to review a PR without
having to pull and compile the code locally.
2021-02-09 13:58:15 +01:00
Martin Pitt
3dbd37a8c3
workflows: Move npm-update to Ubuntu 20.04
GitHub's 18.04 additional repositories break NPM. As "ubuntu-latest" is
going to switch to 20.04 soon anyway [1], do the jump now.

[1] https://github.com/actions/virtual-environments/issues/1816

Closes #409
2020-12-28 16:17:11 +01:00
Martin Pitt
8771907002 workflows: Fix apt installation in npm-update
GitHub's base VMs don't automatically refresh package indexes, so it can
happen that one of the package dependencies get out of date and are not
available on the mirrors any more.

Run `apt update` first to ensure that the workflow installs the latest
packages.
2020-12-11 10:11:57 +02:00
Martin Pitt
f95b9a0373
workflows: Update release container registry
With [1] the release container moved from dockerhub to GitHub's
container registry, as we both build and use it from GitHub. This avoids
running into docker.io pull limits.

[1] https://github.com/cockpit-project/cockpituous/pull/353

Closes #398
2020-12-02 10:29:38 +01:00
Martin Pitt
8e16b06df2
Run npm-update in a GitHub workflow
This avoids a lot of moving parts in our infrastructure (webhook,
npm-trigger roundtrip, tasks container), works in exactly the same way
for independent third-party projects, and does not need *any* secret
other than the automatically provided GitHub token.

Let this run early every morning, roughly similar frequency as
cockpituous used to do. Also add a manual trigger, so that we get a
button to run it on demand.

Closes #384
2020-10-20 09:08:08 +02:00
Martin Pitt
2a51e057d7 Show how to run the release in GitHub workflow
Enter the new world of GitHub actions [1]/GitLab pipelines [2]. This
simplifies our end of the infrastructure considerably:

* No need any more to set up webhooks, all the relevant configuration
  is right in the workflow file.

* Does not need any infrastructure on our side any more, and thus works
  for third-party projects. They just need to set up their own secrets.

* GitHub automatically provides a temporary `GITHUB_TOKEN` with
  sufficient write access to the project to publish a release, so we
  don't need to carry around that secret. Thus if your project only
  releases to GitHub, there is zero secrets management.

Also adjust cockpituous-release a bit (update Fedora version, fix
project name copy-pasta), point to the action workflow and necessary
secrets.

Closes #380
2020-10-13 09:37:35 +02:00