Skip to content

Commit

Permalink
Docs(GitLab): add entrypoint for distroless image (#9093)
Browse files Browse the repository at this point in the history
## Summary

Update the docs for the GitLab integration, to make it clear that an
entrypoint has to be specified, when a distroless image is being used.

## Test Plan

Without specifying an entrypoint when using a distroless image:

<img
src=https://github.com/user-attachments/assets/35499bd5-51d8-4016-b1d0-2d56956f82e6
width=500>

_It works if you either specify the entrypoint or if the image used in
not a distroless one._

Co-authored-by: Tsafaras <konstantinos@valuechecker.ai>
  • Loading branch information
Tsafaras and Tsafaras authored Dec 4, 2024
1 parent 457c2fe commit 7d13088
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/guides/integration/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ uv:
# your `uv` commands
```

!!! note

If you are using a distroless image, you have to specify the entrypoint:
```yaml
uv:
image:
name: ghcr.io/astral-sh/uv:$UV_VERSION
entrypoint: [""]
# ...
```

## Caching

Persisting the uv cache between workflow runs can improve performance.
Expand Down

0 comments on commit 7d13088

Please sign in to comment.