Closed apricote closed 1 month ago
To run this tool in GitLab CI pipelines, we must be able to shell into the container image. The default base image from ko seem to not provide a shell. We might need to add a shell binary or swap the base image with something more flexible.
I think with Steps we could keep publishing a ko
-built image and use it on GitLab. Downside is that Steps are marked as experimental right now.
Alternatively we can switch the ko base image from cgr.dev/chainguard/static
to cgr.dev/chainguard/busybox
(ash
) or cgr.dev/chainguard/bash
.
First usable version of this was published in v0.4.0-beta.1. Still working on documentation before creating a proper release
Docs are now available and this will be released in 0.4.0.
We currently only support repositories on GitHub, I would like to see support for GitLabs APIs and GitLab CI.
Implementation
API (Forge)
This was implemented in these pull requests:
49
51
53
54
GitLab CI/CD
This is a bit more complicated. GitLab CI/CD has multiple drawbacks against GitHub Actions:
api
andwrite_repository
.This is currently in progress:
55
I have also thought about adding a Webhook server that one can deploy to manually create CI jobs when the description is updated.