From 8db102c608e030288cb7b6c517b65a6ff19e0d41 Mon Sep 17 00:00:00 2001 From: Sigurd Spieckermann Date: Tue, 8 Oct 2024 12:17:42 +0200 Subject: [PATCH 1/6] Fix syntax in GitLab integration docs --- docs/guides/integration/gitlab.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/integration/gitlab.md b/docs/guides/integration/gitlab.md index c1cf935220104..eccb2c8b00661 100644 --- a/docs/guides/integration/gitlab.md +++ b/docs/guides/integration/gitlab.md @@ -37,9 +37,9 @@ UV Install: - uv.lock paths: - $UV_CACHE_DIR - steps: > + script: > # Your uv commands - run: uv cache prune --ci + uv cache prune --ci ``` See the [GitLab caching documentation](https://docs.gitlab.com/ee/ci/caching/) for more details on From a650f2f5cad0407247e04d671af91c5e3dc58ee6 Mon Sep 17 00:00:00 2001 From: Sigurd Spieckermann Date: Tue, 8 Oct 2024 12:19:02 +0200 Subject: [PATCH 2/6] Use idiomatic syntax in GitLab integration docs --- docs/guides/integration/gitlab.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guides/integration/gitlab.md b/docs/guides/integration/gitlab.md index eccb2c8b00661..ce21e5ad405be 100644 --- a/docs/guides/integration/gitlab.md +++ b/docs/guides/integration/gitlab.md @@ -18,8 +18,8 @@ UV: stage: analysis image: name: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER - script: > - cd $CI_PROJECT_DIR + script: + - cd $CI_PROJECT_DIR # your `uv` commands ``` @@ -37,9 +37,9 @@ UV Install: - uv.lock paths: - $UV_CACHE_DIR - script: > - # Your uv commands - 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 From 730e92a48f9a41ac0215113b7433e4038bb56f67 Mon Sep 17 00:00:00 2001 From: Sigurd Spieckermann Date: Tue, 8 Oct 2024 12:21:12 +0200 Subject: [PATCH 3/6] Remove obsolete command in GitLab integration docs --- docs/guides/integration/gitlab.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/guides/integration/gitlab.md b/docs/guides/integration/gitlab.md index ce21e5ad405be..ea1016f3097f1 100644 --- a/docs/guides/integration/gitlab.md +++ b/docs/guides/integration/gitlab.md @@ -19,7 +19,6 @@ UV: image: name: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER script: - - cd $CI_PROJECT_DIR # your `uv` commands ``` From acda2f734e16f2bece4cf45c558789ecf1e42b4d Mon Sep 17 00:00:00 2001 From: Sigurd Spieckermann Date: Tue, 8 Oct 2024 12:22:39 +0200 Subject: [PATCH 4/6] Fix cache directory path in GitLab integration docs --- docs/guides/integration/gitlab.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/integration/gitlab.md b/docs/guides/integration/gitlab.md index ea1016f3097f1..3a5c6cc145c20 100644 --- a/docs/guides/integration/gitlab.md +++ b/docs/guides/integration/gitlab.md @@ -29,7 +29,7 @@ Persisting the uv cache between workflow runs can improve performance. ```yaml UV Install: variables: - UV_CACHE_DIR: /tmp/.uv-cache + UV_CACHE_DIR: .uv-cache cache: - key: files: From 72d32e38d2d316a577aec98e25f59addf4c35ecd Mon Sep 17 00:00:00 2001 From: Sigurd Spieckermann Date: Tue, 8 Oct 2024 12:25:44 +0200 Subject: [PATCH 5/6] Use more idiomatic CI job names in GitLab integration docs --- docs/guides/integration/gitlab.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/integration/gitlab.md b/docs/guides/integration/gitlab.md index 3a5c6cc145c20..aa5bb53f920d2 100644 --- a/docs/guides/integration/gitlab.md +++ b/docs/guides/integration/gitlab.md @@ -14,7 +14,7 @@ variables: stages: - analysis -UV: +uv: stage: analysis image: name: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER @@ -27,7 +27,7 @@ UV: Persisting the uv cache between workflow runs can improve performance. ```yaml -UV Install: +uv-install: variables: UV_CACHE_DIR: .uv-cache cache: From 53036b64b6183b1a24de1c2b8458b8342bb4c3c7 Mon Sep 17 00:00:00 2001 From: Sigurd Spieckermann Date: Tue, 8 Oct 2024 12:32:34 +0200 Subject: [PATCH 6/6] Use simple `image` syntax in GitLab integration docs --- docs/guides/integration/gitlab.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/guides/integration/gitlab.md b/docs/guides/integration/gitlab.md index aa5bb53f920d2..26f19bace0d6a 100644 --- a/docs/guides/integration/gitlab.md +++ b/docs/guides/integration/gitlab.md @@ -16,8 +16,7 @@ stages: uv: stage: analysis - image: - name: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER + image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER script: # your `uv` commands ```