From 5dfd52aa32732125c62887f10da76ceaa47d43d2 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Thu, 10 Jul 2025 11:07:55 +0200 Subject: [PATCH] get hostname of S3 server from var. not secret (#1203) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * get hostname of S3 server from var. not secret * get hostname of S3 server from var. not secret --------- Co-authored-by: Artur Neumann Co-authored-by: André Duffeck --- .woodpecker.star | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.woodpecker.star b/.woodpecker.star index 29aa54b580..0e48ad51d6 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -46,6 +46,8 @@ READY_RELEASE_GO = "woodpeckerci/plugin-ready-release-go:latest" DEFAULT_PHP_VERSION = "8.2" DEFAULT_NODEJS_VERSION = "20" +CACHE_S3_SERVER = "https://s3.ci.opencloud.eu" + dirs = { "base": "/woodpecker/src/github.com/opencloud-eu/opencloud", "web": "/woodpecker/src/github.com/opencloud-eu/opencloud/webTestRunner", @@ -369,9 +371,7 @@ MINIO_MC_ENV = { "CACHE_BUCKET": { "from_secret": "cache_s3_bucket", }, - "MC_HOST": { - "from_secret": "cache_s3_server", - }, + "MC_HOST": CACHE_S3_SERVER, "AWS_ACCESS_KEY_ID": { "from_secret": "cache_s3_access_key", }, @@ -669,9 +669,7 @@ def testOpencloud(ctx): "name": "scan-result-cache", "image": PLUGINS_S3, "settings": { - "endpoint": { - "from_secret": "cache_s3_server", - }, + "endpoint": CACHE_S3_SERVER, "bucket": "cache", "source": "cache/**/*", "target": "%s/%s" % (repo_slug, ctx.build.commit + "-${CI_PIPELINE_NUMBER}"), @@ -1473,9 +1471,7 @@ def uploadTracingResult(ctx): "bucket": { "from_secret": "cache_public_s3_bucket", }, - "endpoint": { - "from_secret": "cache_public_s3_server", - }, + "endpoint": CACHE_S3_SERVER, "path_style": True, "source": "webTestRunner/reports/e2e/playwright/tracing/**/*", "strip_prefix": "webTestRunner/reports/e2e/playwright/tracing", @@ -2323,9 +2319,7 @@ def genericCache(name, action, mounts, cache_path): "name": "%s_%s" % (action, name), "image": PLUGINS_S3_CACHE, "settings": { - "endpoint": { - "from_secret": "cache_s3_server", - }, + "endpoint": CACHE_S3_SERVER, "rebuild": rebuild, "restore": restore, "mount": mounts, @@ -2356,9 +2350,7 @@ def genericCachePurge(flush_path): "secret_key": { "from_secret": "cache_s3_secret_key", }, - "endpoint": { - "from_secret": "cache_s3_server", - }, + "endpoint": CACHE_S3_SERVER, "flush": True, "flush_age": 1, "flush_path": flush_path,