From 349f66ca6d7c41353f67ae1429a0caa76bfcff17 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 8 Nov 2024 00:44:50 +0100 Subject: [PATCH 1/3] Unpin xgo (#4335) --- .woodpecker/binaries.yaml | 2 +- .woodpecker/docker.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker/binaries.yaml b/.woodpecker/binaries.yaml index d50953fe1..b87b1f3bd 100644 --- a/.woodpecker/binaries.yaml +++ b/.woodpecker/binaries.yaml @@ -9,7 +9,7 @@ when: variables: - &golang_image 'docker.io/golang:1.23' - &node_image 'docker.io/node:23-alpine' - - &xgo_image 'docker.io/techknowlogick/xgo:go-1.23.1' + - &xgo_image 'docker.io/techknowlogick/xgo:go-1.23.x' # cspell:words bindata netgo diff --git a/.woodpecker/docker.yaml b/.woodpecker/docker.yaml index a9945e2f3..3e94aff17 100644 --- a/.woodpecker/docker.yaml +++ b/.woodpecker/docker.yaml @@ -1,7 +1,7 @@ variables: - &golang_image 'docker.io/golang:1.23' - &node_image 'docker.io/node:23-alpine' - - &xgo_image 'docker.io/techknowlogick/xgo:go-1.23.1' + - &xgo_image 'docker.io/techknowlogick/xgo:go-1.23.x' - &buildx_plugin 'docker.io/woodpeckerci/plugin-docker-buildx:5.0.0' - &platforms_release 'linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/386,linux/amd64,linux/ppc64le,linux/riscv64,linux/s390x,freebsd/arm64,freebsd/amd64,openbsd/arm64,openbsd/amd64' - &platforms_server 'linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le,linux/riscv64' From b5915f605b8ea31c2e53d60054ae7cd6cb763165 Mon Sep 17 00:00:00 2001 From: Patrick Schratz Date: Fri, 8 Nov 2024 11:00:03 +0100 Subject: [PATCH 2/3] fix `error="io: read/write on closed pipe"` on k8s backend (#4281) --- pipeline/backend/kubernetes/kubernetes.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pipeline/backend/kubernetes/kubernetes.go b/pipeline/backend/kubernetes/kubernetes.go index ed6f19d06..b1f1a0447 100644 --- a/pipeline/backend/kubernetes/kubernetes.go +++ b/pipeline/backend/kubernetes/kubernetes.go @@ -381,7 +381,6 @@ func (e *kube) TailStep(ctx context.Context, step *types.Step, taskUUID string) go func() { defer logs.Close() defer wc.Close() - defer rc.Close() _, err = io.Copy(wc, logs) if err != nil { From ac1962bb7b36ee9d8f04cdfd568151c88b90309a Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Fri, 8 Nov 2024 14:36:19 +0200 Subject: [PATCH 3/3] Fix deployment event note (#4283) --- docs/docs/20-usage/20-workflow-syntax.md | 2 +- docs/docs/30-administration/11-forges/11-overview.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/docs/20-usage/20-workflow-syntax.md b/docs/docs/20-usage/20-workflow-syntax.md index 729c02f75..a3d04da37 100644 --- a/docs/docs/20-usage/20-workflow-syntax.md +++ b/docs/docs/20-usage/20-workflow-syntax.md @@ -289,7 +289,7 @@ The available events are: - `pull_request_closed`: triggered when a pull request is closed or merged. - `tag`: triggered when a tag is pushed. - `release`: triggered when a release, pre-release or draft is created. (You can apply further filters using [evaluate](#evaluate) with [environment variables](./50-environment.md#built-in-environment-variables).) -- `deployment` (only available for GitHub): triggered when a deployment is created in the repository. +- `deployment`: triggered when a deployment is created in the repository. (This event can be triggered from Woodpecker directly. GitHub also supports webhook triggers.) - `cron`: triggered when a cron job is executed. - `manual`: triggered when a user manually triggers a pipeline. diff --git a/docs/docs/30-administration/11-forges/11-overview.md b/docs/docs/30-administration/11-forges/11-overview.md index ba45adf87..c48cc574a 100644 --- a/docs/docs/30-administration/11-forges/11-overview.md +++ b/docs/docs/30-administration/11-forges/11-overview.md @@ -8,6 +8,8 @@ | Event: Tag | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Event: Pull-Request | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | Event: Release | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: | -| Event: Deploy | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | +| Event: Deploy¹ | :white_check_mark: | :x: | :x: | :x: | :x: | :x: | | [Multiple workflows](../../20-usage/25-workflows.md) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | [when.path filter](../../20-usage/20-workflow-syntax.md#path) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: | + +¹ The deployment event can be triggered for all forges from Woodpecker directly. However, only GitHub can trigger them using webhooks.