aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/workflows/step.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-01 13:47:26 +0900
committerOphestra <cat@gensokyo.uk>2026-10-01 13:53:14 +0900
commit3be6a3f79aa5871a1d0ec701f367966dcf8e1a36 (patch)
tree4768cbc44301dc119b060095cbe97fbabcdd1166 /internal/workflows/step.go
parent0d90eb44ac23052e79d42d7520520ebc0f2d2247 (diff)
internal/workflows: request dist via cmd/mbf
This replaces the nix-based dist job. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/workflows/step.go')
-rw-r--r--internal/workflows/step.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/workflows/step.go b/internal/workflows/step.go
index d09e047e..c0138926 100644
--- a/internal/workflows/step.go
+++ b/internal/workflows/step.go
@@ -2,6 +2,13 @@
package main
+// fixup is a step to work around a Podman regression introduced by a bad
+// container escape mitigation.
+var fixup = Step{
+ Name: "Fix container filesystem",
+ Run: "rm /var/run && ln -sf ../run /var",
+}
+
// checkout is the standard actions/checkout step.
var checkout = Step{Name: "Checkout", Uses: "actions/checkout@v4"}
@@ -21,6 +28,18 @@ func newUploadArtifact(display, name string) Step {
}
}
+// newCIRequest returns a step for requesting a mbf CI task.
+func newCIRequest(display, name, id string) Step {
+ return Step{
+ Name: "Request " + display,
+ ID: id,
+ Run: "export HAKUREI_REV=\"$(git rev-parse --short HEAD)\" && " +
+ "/rosa/bin/mbf ci " + name + " " +
+ ". \"$(cat cmd/dist/VERSION)-$HAKUREI_REV\" && " +
+ "echo \"rev=$HAKUREI_REV\" >> \"$GITHUB_OUTPUT\"",
+ }
+}
+
// newNixOSTest returns a step for running the named NixOS test.
func newNixOSTest(name string) Step {
return Step{