From f8dc2ca83bd49e6ea15c2ac8337c46569963ff4f Mon Sep 17 00:00:00 2001 From: pat-s Date: Thu, 10 Aug 2023 11:14:35 +0200 Subject: [PATCH 01/12] restructure k8s documentation --- docs/docs/30-administration/00-setup.md | 10 +++ .../22-backends/40-kubernetes.md | 25 +++++-- docs/docs/30-administration/80-kubernetes.md | 72 ------------------- 3 files changed, 28 insertions(+), 79 deletions(-) delete mode 100644 docs/docs/30-administration/80-kubernetes.md diff --git a/docs/docs/30-administration/00-setup.md b/docs/docs/30-administration/00-setup.md index d1161906d77..96a3843d338 100644 --- a/docs/docs/30-administration/00-setup.md +++ b/docs/docs/30-administration/00-setup.md @@ -171,6 +171,16 @@ services: + - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} ``` +### Kubernetes + +We recommended to deploy Woodpecker using the [Woodpecker helm chart](https://github.com/woodpecker-ci/helm). +Have a look at the `values.yaml` config files for all available settings. + +The chart contains two subcharts, `server` and `agent` which are automatically configured as needed. +The chart started off with two independent charts but was merged into one to simplify the deployment at start of 2023. + +A couple of backend-specific config env vars exists which are described in the [kubernetes backend docs](./22-backends/40-kubernetes.md). + ## Authentication Authentication is done using OAuth and is delegated to your forge which is configured by using environment variables. The example above demonstrates basic GitHub integration. diff --git a/docs/docs/30-administration/22-backends/40-kubernetes.md b/docs/docs/30-administration/22-backends/40-kubernetes.md index 9ab79b7e6f2..9f927f8c602 100644 --- a/docs/docs/30-administration/22-backends/40-kubernetes.md +++ b/docs/docs/30-administration/22-backends/40-kubernetes.md @@ -1,12 +1,6 @@ # Kubernetes backend -:::caution -Kubernetes support is still experimental and not all pipeline features are fully supported yet. - -Check the [current state](https://github.com/woodpecker-ci/woodpecker/issues/1513) -::: - -The kubernetes backend executes each step inside a newly created pod. A PVC is also created for the lifetime of the pipeline, for transferring files between steps. +The kubernetes backend executes steps inside standalone pods. A temporary PVC is created for the lifetime of the pipeline to transfer files between steps. ## Configuration @@ -79,3 +73,20 @@ steps: nodeSelector: beta.kubernetes.io/instance-type: p3.8xlarge ``` + +### Volumes + +To mount volumes a persistent volume (PV) and persistent volume claim (PVC) are needed on the cluster which can be referenced in steps via the `volume:` option. +Assuming a PVC named "woodpecker-cache" exists, it can be referenced as follows in a step: + +```yaml +steps: + "Restore Cache": + image: meltwater/drone-cache + volumes: + - woodpecker-cache:/woodpecker/src/cache + settings: + mount: + - "woodpecker-cache" + [...] +``` diff --git a/docs/docs/30-administration/80-kubernetes.md b/docs/docs/30-administration/80-kubernetes.md deleted file mode 100644 index 8b28c18d9ee..00000000000 --- a/docs/docs/30-administration/80-kubernetes.md +++ /dev/null @@ -1,72 +0,0 @@ -# Kubernetes - -Woodpecker does support Kubernetes as a backend. See the [Kubernetes backend configuration](./22-backends/40-kubernetes.md#configuration) for backend-specific options. - -:::caution -Kubernetes support is still experimental and not all pipeline features are fully supported yet. - -Check the [current state](https://github.com/woodpecker-ci/woodpecker/issues/9#issuecomment-483979755) -::: - -## Deploy with HELM - -Deploying Woodpecker with [HELM](https://helm.sh/docs/) is the recommended way. -Have a look at the `values.yaml` config files for all available settings. - -### Preparation - -```shell -# create agent secret -kubectl create secret generic woodpecker-secret \ - --namespace \ - --from-literal=WOODPECKER_AGENT_SECRET=$(openssl rand -hex 32) - -# add credentials for your forge -kubectl create secret generic woodpecker-github-client \ - --namespace \ - --from-literal=WOODPECKER_GITHUB_CLIENT=xxxxxxxx - -kubectl create secret generic woodpecker-github-secret \ - --namespace \ - --from-literal=WOODPECKER_GITHUB_SECRET=xxxxxxxx - -# add helm repo -helm repo add woodpecker https://woodpecker-ci.org/ -``` - -### Woodpecker server - -```shell -# Install -helm upgrade --install woodpecker-server --namespace woodpecker/woodpecker-server - -# Uninstall -helm delete woodpecker-server -``` - -### Woodpecker agent - -```shell -# Install -helm upgrade --install woodpecker-agent --namespace woodpecker/woodpecker-agent - -# Uninstall -helm delete woodpecker-agent -``` - -## Volumes - -To mount volumes a persistent volume (PV) and persistent volume claim (PVC) are needed on the cluster which can be referenced in steps via the `volume:` option. -Assuming a PVC named "woodpecker-cache" exists, it can be referenced as follows in a step: - -```yaml -steps: - "Restore Cache": - image: meltwater/drone-cache - volumes: - - woodpecker-cache:/woodpecker/src/cache - settings: - mount: - - "woodpecker-cache" - [...] -``` From 366e00aceaaa1b4058cbdee144b27bc3b65ad786 Mon Sep 17 00:00:00 2001 From: pat-s Date: Thu, 10 Aug 2023 11:34:35 +0200 Subject: [PATCH 02/12] refs --- docs/docs/30-administration/00-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/30-administration/00-setup.md b/docs/docs/30-administration/00-setup.md index 96a3843d338..5122be57226 100644 --- a/docs/docs/30-administration/00-setup.md +++ b/docs/docs/30-administration/00-setup.md @@ -35,7 +35,7 @@ In addition you need at least some kind of database which requires additional re You can install Woodpecker on multiple ways: - Using [docker-compose](#docker-compose) with the official [container images](../80-downloads.md#docker-images) -- By deploying to a [Kubernetes](./80-kubernetes.md) with manifests or Woodpeckers official Helm charts +- Using [Kubernetes](./#kubernetes) via the Woodpeckers Helm chart - Using [binaries](../80-downloads.md) ### docker-compose From 4aa2504b91f24a1d305c639617c19cf4d5f7d498 Mon Sep 17 00:00:00 2001 From: pat-s Date: Thu, 10 Aug 2023 11:46:28 +0200 Subject: [PATCH 03/12] add example for resources definition --- .../22-backends/40-kubernetes.md | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/docs/30-administration/22-backends/40-kubernetes.md b/docs/docs/30-administration/22-backends/40-kubernetes.md index 9f927f8c602..24c8c2e2eed 100644 --- a/docs/docs/30-administration/22-backends/40-kubernetes.md +++ b/docs/docs/30-administration/22-backends/40-kubernetes.md @@ -39,7 +39,26 @@ Additional annotations to apply to worker pods. Must be a YAML object, e.g. `{"e ### Resources The kubernetes backend also allows for specifying requests and limits on a per-step basic, most commonly for CPU and memory. -See the [kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) for more information on using resources. +We recommend to add a `resources` definition to all steps to ensure efficient scheduling. + +Here is an example definition with an arbitrary `resources` definition below the `backend_options` section: + +```yml +steps: + "My kubernetes step": + image: alpine + commands: + - echo "Hello world" + backend_options: + kubernetes: + resources: + requests: + memory: 200Mi + cpu: 100m + limits: + memory: 400Mi + cpu: 1000m +``` ### serviceAccountName From 721fdd2f960b43953651d34f0784781cbbacf3b8 Mon Sep 17 00:00:00 2001 From: pat-s Date: Thu, 10 Aug 2023 11:48:55 +0200 Subject: [PATCH 04/12] use list instead of headrs --- .../22-backends/40-kubernetes.md | 33 ++++++++----------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/docs/docs/30-administration/22-backends/40-kubernetes.md b/docs/docs/30-administration/22-backends/40-kubernetes.md index 24c8c2e2eed..3d51d405265 100644 --- a/docs/docs/30-administration/22-backends/40-kubernetes.md +++ b/docs/docs/30-administration/22-backends/40-kubernetes.md @@ -4,35 +4,29 @@ The kubernetes backend executes steps inside standalone pods. A temporary PVC is ## Configuration -### `WOODPECKER_BACKEND_K8S_NAMESPACE` -> Default: `woodpecker` +- `WOODPECKER_BACKEND_K8S_NAMESPACE` (default: `woodpecker`) -The namespace to create worker pods in. + The namespace to create worker pods in. -### `WOODPECKER_BACKEND_K8S_VOLUME_SIZE` -> Default: `10G` +- `WOODPECKER_BACKEND_K8S_VOLUME_SIZE` (default: `10G`) -The volume size of the pipeline volume. + The volume size of the pipeline volume. -### `WOODPECKER_BACKEND_K8S_STORAGE_CLASS` -> Default: empty +- `WOODPECKER_BACKEND_K8S_STORAGE_CLASS` (default: empty) -The storage class to use for the pipeline volume. + The storage class to use for the pipeline volume. -### `WOODPECKER_BACKEND_K8S_STORAGE_RWX` -> Default: `true` +- `WOODPECKER_BACKEND_K8S_STORAGE_RWX` (default: `true`) -Determines if `RWX` should be used for the pipeline volume's [access mode](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes). If false, `RWO` is used instead. + Determines if `RWX` should be used for the pipeline volume's [access mode](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes). If false, `RWO` is used instead. -### `WOODPECKER_BACKEND_K8S_POD_LABELS` -> Default: empty +- `WOODPECKER_BACKEND_K8S_POD_LABELS` (default: empty) -Additional labels to apply to worker pods. Must be a YAML object, e.g. `{"example.com/test-label":"test-value"}`. + Additional labels to apply to worker pods. Must be a YAML object, e.g. `{"example.com/test-label":"test-value"}`. -### `WOODPECKER_BACKEND_K8S_POD_ANNOTATIONS` -> Default: empty +- `WOODPECKER_BACKEND_K8S_POD_ANNOTATIONS` (default: empty) -Additional annotations to apply to worker pods. Must be a YAML object, e.g. `{"example.com/test-annotation":"test-value"}`. + Additional annotations to apply to worker pods. Must be a YAML object, e.g. `{"example.com/test-annotation":"test-value"}`. ## Job specific configuration @@ -45,7 +39,7 @@ Here is an example definition with an arbitrary `resources` definition below the ```yml steps: - "My kubernetes step": + 'My kubernetes step': image: alpine commands: - echo "Hello world" @@ -72,6 +66,7 @@ By default the pod will use "kubernetes.io/arch" inferred from top-level "platfo See the [kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) for more information on using nodeSelector. Example pipeline configuration: + ```yaml steps: build: From 5358c4989655352fbfaef01aada97d94198f2a73 Mon Sep 17 00:00:00 2001 From: pat-s Date: Thu, 10 Aug 2023 12:05:42 +0200 Subject: [PATCH 05/12] add example for definining env vars --- .../22-backends/40-kubernetes.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/docs/30-administration/22-backends/40-kubernetes.md b/docs/docs/30-administration/22-backends/40-kubernetes.md index 3d51d405265..28b4464ca5b 100644 --- a/docs/docs/30-administration/22-backends/40-kubernetes.md +++ b/docs/docs/30-administration/22-backends/40-kubernetes.md @@ -2,7 +2,23 @@ The kubernetes backend executes steps inside standalone pods. A temporary PVC is created for the lifetime of the pipeline to transfer files between steps. -## Configuration +## General Configuration + +These env vars can be set in the `env:` sections of both `server` and `agent`. +They do not need to be set for both but only for the part to which it is relevant to. + +```yml +server: + enabled: true + + env: + WOODPECKER_SESSION_EXPIRES: "300h" + [...] + +agent: + env: + [...] +``` - `WOODPECKER_BACKEND_K8S_NAMESPACE` (default: `woodpecker`) From 16799005c59389e4196f164e7d7c2b35ee569d8f Mon Sep 17 00:00:00 2001 From: pat-s Date: Thu, 10 Aug 2023 12:21:08 +0200 Subject: [PATCH 06/12] refine --- docs/docs/30-administration/22-backends/40-kubernetes.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/docs/30-administration/22-backends/40-kubernetes.md b/docs/docs/30-administration/22-backends/40-kubernetes.md index 28b4464ca5b..320508ab98a 100644 --- a/docs/docs/30-administration/22-backends/40-kubernetes.md +++ b/docs/docs/30-administration/22-backends/40-kubernetes.md @@ -9,8 +9,6 @@ They do not need to be set for both but only for the part to which it is relevan ```yml server: - enabled: true - env: WOODPECKER_SESSION_EXPIRES: "300h" [...] From 206959120b439c0796937f1653b17b08754f8731 Mon Sep 17 00:00:00 2001 From: pat-s Date: Sat, 12 Aug 2023 10:10:20 +0200 Subject: [PATCH 07/12] add info --- docs/docs/30-administration/22-backends/40-kubernetes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/30-administration/22-backends/40-kubernetes.md b/docs/docs/30-administration/22-backends/40-kubernetes.md index 320508ab98a..15cd68c4407 100644 --- a/docs/docs/30-administration/22-backends/40-kubernetes.md +++ b/docs/docs/30-administration/22-backends/40-kubernetes.md @@ -1,5 +1,9 @@ # Kubernetes backend +:::info +Not all pipeline features are fully supported yet for this backend. +Check [the Kubernetes overview issue](https://github.com/woodpecker-ci/woodpecker/issues/1513) for a summary. + The kubernetes backend executes steps inside standalone pods. A temporary PVC is created for the lifetime of the pipeline to transfer files between steps. ## General Configuration From 6be0689bc52487e4b6b2d3559a80228d2fb15ea7 Mon Sep 17 00:00:00 2001 From: pat-s Date: Sat, 12 Aug 2023 10:45:30 +0200 Subject: [PATCH 08/12] . --- docs/docs/30-administration/22-backends/40-kubernetes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/30-administration/22-backends/40-kubernetes.md b/docs/docs/30-administration/22-backends/40-kubernetes.md index 15cd68c4407..20c84a022a6 100644 --- a/docs/docs/30-administration/22-backends/40-kubernetes.md +++ b/docs/docs/30-administration/22-backends/40-kubernetes.md @@ -3,6 +3,7 @@ :::info Not all pipeline features are fully supported yet for this backend. Check [the Kubernetes overview issue](https://github.com/woodpecker-ci/woodpecker/issues/1513) for a summary. +::: The kubernetes backend executes steps inside standalone pods. A temporary PVC is created for the lifetime of the pipeline to transfer files between steps. From 49b17bd0a505fc92e484d573f8fc247a42493ee9 Mon Sep 17 00:00:00 2001 From: pat-s Date: Sat, 12 Aug 2023 10:56:18 +0200 Subject: [PATCH 09/12] test workflow filters --- .woodpecker/docker.yml | 14 ++++++++++++++ .woodpecker/securityscan.yml | 14 ++++++++++++++ .woodpecker/test.yml | 14 ++++++++++++++ .woodpecker/web.yml | 2 ++ 4 files changed, 44 insertions(+) diff --git a/.woodpecker/docker.yml b/.woodpecker/docker.yml index 6c74ee077b9..87fa02e910d 100644 --- a/.woodpecker/docker.yml +++ b/.woodpecker/docker.yml @@ -1,9 +1,23 @@ when: - event: [pull_request, tag] + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" - event: push branch: - ${CI_REPO_DEFAULT_BRANCH} - release/* + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" depends_on: - test diff --git a/.woodpecker/securityscan.yml b/.woodpecker/securityscan.yml index a0ccc136fce..97f9a675bb0 100644 --- a/.woodpecker/securityscan.yml +++ b/.woodpecker/securityscan.yml @@ -1,9 +1,23 @@ when: - event: [ pull_request, cron ] + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" - event: push branch: - ${CI_REPO_DEFAULT_BRANCH} - release/* + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" variables: - &trivy_image aquasec/trivy:latest diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index c816c0d21b7..47a1d945cf5 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -1,9 +1,23 @@ when: - event: [pull_request, tag] + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" - event: push branch: - ${CI_REPO_DEFAULT_BRANCH} - release/* + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" variables: - &golang_image 'golang:1.20.2' diff --git a/.woodpecker/web.yml b/.woodpecker/web.yml index 77100449bd4..92f319806c1 100644 --- a/.woodpecker/web.yml +++ b/.woodpecker/web.yml @@ -1,5 +1,7 @@ when: - event: [pull_request, tag] + path: &when_path + - "web/**" - event: push branch: - ${CI_REPO_DEFAULT_BRANCH} From 218ec7570735400602726eda6892070171a220f7 Mon Sep 17 00:00:00 2001 From: pat-s Date: Sat, 12 Aug 2023 11:50:06 +0200 Subject: [PATCH 10/12] refine wf triggers --- .woodpecker/docker.yml | 50 +++++++++++++++++++++++++++++++----- .woodpecker/securityscan.yml | 30 +++++++++++++++++----- .woodpecker/test.yml | 13 +++++----- .woodpecker/web.yml | 3 +-- 4 files changed, 73 insertions(+), 23 deletions(-) diff --git a/.woodpecker/docker.yml b/.woodpecker/docker.yml index 87fa02e910d..1bd2788c2bc 100644 --- a/.woodpecker/docker.yml +++ b/.woodpecker/docker.yml @@ -1,12 +1,5 @@ when: - event: [pull_request, tag] - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" - event: push branch: - ${CI_REPO_DEFAULT_BRANCH} @@ -68,6 +61,14 @@ steps: - corepack enable - pnpm install --frozen-lockfile - pnpm build + when: + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" cross-compile-server-preview: image: *xgo_image @@ -82,6 +83,13 @@ steps: XGO_VERSION: *xgo_version when: event: pull_request + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" publish-server-preview: image: woodpeckerci/plugin-docker-buildx @@ -94,6 +102,13 @@ steps: tag: pull_${CI_COMMIT_PULL_REQUEST} when: event: pull_request + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" publish-server-alpine-preview: image: woodpeckerci/plugin-docker-buildx @@ -106,6 +121,13 @@ steps: tag: pull_${CI_COMMIT_PULL_REQUEST}-alpine when: event: pull_request + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" cross-compile-server: image: *xgo_image @@ -217,6 +239,13 @@ steps: tag: pull_${CI_COMMIT_PULL_REQUEST} when: event: pull_request + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" publish-next-agent: group: docker @@ -311,6 +340,13 @@ steps: tag: pull_${CI_COMMIT_PULL_REQUEST} when: event: pull_request + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" publish-next-cli: group: docker diff --git a/.woodpecker/securityscan.yml b/.woodpecker/securityscan.yml index 97f9a675bb0..0e5a0e9fe5d 100644 --- a/.woodpecker/securityscan.yml +++ b/.woodpecker/securityscan.yml @@ -1,12 +1,5 @@ when: - event: [ pull_request, cron ] - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" - event: push branch: - ${CI_REPO_DEFAULT_BRANCH} @@ -29,6 +22,14 @@ steps: image: *trivy_plugin settings: skip-dirs: web/,docs/ + when: + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" check docs: group: check @@ -38,6 +39,13 @@ steps: dir: docs/ when: event: [pull_request, push, cron] + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" branch: ${CI_REPO_DEFAULT_BRANCH} check web: @@ -46,3 +54,11 @@ steps: settings: skip-dirs: node_modules/ dir: web/ + when: + path: &when_path + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 47a1d945cf5..884d13a639b 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -1,12 +1,5 @@ when: - event: [pull_request, tag] - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" - event: push branch: - ${CI_REPO_DEFAULT_BRANCH} @@ -31,6 +24,12 @@ variables: - "go.*" # schema changes - "pipeline/schema/**" + - "agent/**" + - "cli/**" + - "cmd/**" + - "server/**" + - "shared/**" + - "woodpecker-go/**" event: [pull_request, tag, deployment] steps: diff --git a/.woodpecker/web.yml b/.woodpecker/web.yml index 92f319806c1..d3186adf730 100644 --- a/.woodpecker/web.yml +++ b/.woodpecker/web.yml @@ -1,7 +1,5 @@ when: - event: [pull_request, tag] - path: &when_path - - "web/**" - event: push branch: - ${CI_REPO_DEFAULT_BRANCH} @@ -17,6 +15,7 @@ variables: - "web/**" # api source code - "server/api/**" + - "web/**" event: [pull_request, tag, deployment] steps: From d452f2eeca09390ced521da4971a180f60ce482d Mon Sep 17 00:00:00 2001 From: pat-s Date: Sat, 12 Aug 2023 12:52:37 +0200 Subject: [PATCH 11/12] reset workflows --- .woodpecker/docker.yml | 50 ------------------------------------ .woodpecker/securityscan.yml | 30 ---------------------- .woodpecker/test.yml | 13 ---------- .woodpecker/web.yml | 1 - 4 files changed, 94 deletions(-) diff --git a/.woodpecker/docker.yml b/.woodpecker/docker.yml index 1bd2788c2bc..6c74ee077b9 100644 --- a/.woodpecker/docker.yml +++ b/.woodpecker/docker.yml @@ -4,13 +4,6 @@ when: branch: - ${CI_REPO_DEFAULT_BRANCH} - release/* - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" depends_on: - test @@ -61,14 +54,6 @@ steps: - corepack enable - pnpm install --frozen-lockfile - pnpm build - when: - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" cross-compile-server-preview: image: *xgo_image @@ -83,13 +68,6 @@ steps: XGO_VERSION: *xgo_version when: event: pull_request - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" publish-server-preview: image: woodpeckerci/plugin-docker-buildx @@ -102,13 +80,6 @@ steps: tag: pull_${CI_COMMIT_PULL_REQUEST} when: event: pull_request - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" publish-server-alpine-preview: image: woodpeckerci/plugin-docker-buildx @@ -121,13 +92,6 @@ steps: tag: pull_${CI_COMMIT_PULL_REQUEST}-alpine when: event: pull_request - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" cross-compile-server: image: *xgo_image @@ -239,13 +203,6 @@ steps: tag: pull_${CI_COMMIT_PULL_REQUEST} when: event: pull_request - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" publish-next-agent: group: docker @@ -340,13 +297,6 @@ steps: tag: pull_${CI_COMMIT_PULL_REQUEST} when: event: pull_request - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" publish-next-cli: group: docker diff --git a/.woodpecker/securityscan.yml b/.woodpecker/securityscan.yml index 0e5a0e9fe5d..a0ccc136fce 100644 --- a/.woodpecker/securityscan.yml +++ b/.woodpecker/securityscan.yml @@ -4,13 +4,6 @@ when: branch: - ${CI_REPO_DEFAULT_BRANCH} - release/* - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" variables: - &trivy_image aquasec/trivy:latest @@ -22,14 +15,6 @@ steps: image: *trivy_plugin settings: skip-dirs: web/,docs/ - when: - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" check docs: group: check @@ -39,13 +24,6 @@ steps: dir: docs/ when: event: [pull_request, push, cron] - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" branch: ${CI_REPO_DEFAULT_BRANCH} check web: @@ -54,11 +32,3 @@ steps: settings: skip-dirs: node_modules/ dir: web/ - when: - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index 884d13a639b..c816c0d21b7 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -4,13 +4,6 @@ when: branch: - ${CI_REPO_DEFAULT_BRANCH} - release/* - path: &when_path - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" variables: - &golang_image 'golang:1.20.2' @@ -24,12 +17,6 @@ variables: - "go.*" # schema changes - "pipeline/schema/**" - - "agent/**" - - "cli/**" - - "cmd/**" - - "server/**" - - "shared/**" - - "woodpecker-go/**" event: [pull_request, tag, deployment] steps: diff --git a/.woodpecker/web.yml b/.woodpecker/web.yml index d3186adf730..77100449bd4 100644 --- a/.woodpecker/web.yml +++ b/.woodpecker/web.yml @@ -15,7 +15,6 @@ variables: - "web/**" # api source code - "server/api/**" - - "web/**" event: [pull_request, tag, deployment] steps: From 262b6450cc2dd1fdc34adc4f70fe0f5111b47181 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 13 Aug 2023 17:40:03 +0200 Subject: [PATCH 12/12] Update docs/docs/30-administration/00-setup.md Co-authored-by: Anbraten --- docs/docs/30-administration/00-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/30-administration/00-setup.md b/docs/docs/30-administration/00-setup.md index 5122be57226..c8f4276f5d3 100644 --- a/docs/docs/30-administration/00-setup.md +++ b/docs/docs/30-administration/00-setup.md @@ -174,7 +174,7 @@ services: ### Kubernetes We recommended to deploy Woodpecker using the [Woodpecker helm chart](https://github.com/woodpecker-ci/helm). -Have a look at the `values.yaml` config files for all available settings. +Have a look at the [`values.yaml`](https://github.com/woodpecker-ci/helm/blob/main/values.yaml) config files for all available settings. The chart contains two subcharts, `server` and `agent` which are automatically configured as needed. The chart started off with two independent charts but was merged into one to simplify the deployment at start of 2023.