From 4988709fd7888b6f801d75f29de2d05147d7127d Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Thu, 17 Apr 2025 15:27:52 +0200 Subject: [PATCH] fix: binary release version (#695) Co-authored-by: Michael Barz --- .woodpecker.star | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.woodpecker.star b/.woodpecker.star index b689ce76a..3eaa648ac 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -1672,7 +1672,15 @@ def binaryRelease(ctx, arch, depends_on = []): { "name": "build", "image": OC_CI_GOLANG, - "environment": CI_HTTP_PROXY_ENV, + "environment": { + "VERSION": (ctx.build.ref.replace("refs/tags/", "") if ctx.build.event == "tag" else "daily"), + "HTTP_PROXY": { + "from_secret": "ci_http_proxy", + }, + "HTTPS_PROXY": { + "from_secret": "ci_http_proxy", + }, + }, "commands": [ "make -C opencloud release-%s" % arch, ],