Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions docs/guides/integration/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ variables:
stages:
- analysis

UV:
uv:
stage: analysis
image:
name: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
script: >
cd $CI_PROJECT_DIR
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
script:
# your `uv` commands
```

Expand All @@ -28,18 +26,18 @@ UV:
Persisting the uv cache between workflow runs can improve performance.

```yaml
UV Install:
uv-install:
variables:
UV_CACHE_DIR: /tmp/.uv-cache
UV_CACHE_DIR: .uv-cache
cache:
- key:
files:
- uv.lock
paths:
- $UV_CACHE_DIR
steps: >
# Your uv commands
run: uv cache prune --ci
script:
# Your `uv` commands
- uv cache prune --ci
```

See the [GitLab caching documentation](https://docs.gitlab.com/ee/ci/caching/) for more details on
Expand Down