Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: GitLab #4

Closed
apricote opened this issue Aug 5, 2024 · 4 comments
Closed

feat: GitLab #4

apricote opened this issue Aug 5, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@apricote
Copy link
Owner

apricote commented Aug 5, 2024

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:

GitLab CI/CD

This is a bit more complicated. GitLab CI/CD has multiple drawbacks against GitHub Actions:

  • CI/CD pipelines can only be started on repository events, like pushes. We can not start a new job whenever the description is changed
  • The default API Token that as available in the pipeline is severly restricted. The only way around this is with a (project/group/personal) access token with the permissions api and write_repository.

This is currently in progress:

I have also thought about adding a Webhook server that one can deploy to manually create CI jobs when the description is updated.

@apricote apricote added the enhancement New feature or request label Aug 5, 2024
@jooola
Copy link
Contributor

jooola commented Aug 25, 2024

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.

@apricote
Copy link
Owner Author

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.

@apricote apricote added this to the v1.0 milestone Sep 7, 2024
@apricote apricote self-assigned this Sep 7, 2024
apricote added a commit that referenced this issue Sep 15, 2024
GitLab only considers repos on the current instance for its CI/CD
catalog. We want to publish a GitLab CI/CD component for #4.
apricote added a commit that referenced this issue Sep 15, 2024
GitLab only considers repos on the current instance for its CI/CD
catalog. We want to publish a GitLab CI/CD component for #4.
@apricote
Copy link
Owner Author

First usable version of this was published in v0.4.0-beta.1. Still working on documentation before creating a proper release

@apricote
Copy link
Owner Author

Docs are now available and this will be released in 0.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants