diff --git a/docs/guides/integration/gitlab.md b/docs/guides/integration/gitlab.md index c1cf935220104..26f19bace0d6a 100644 --- a/docs/guides/integration/gitlab.md +++ b/docs/guides/integration/gitlab.md @@ -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 ``` @@ -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