From 98ec02ea0b6c10167bcc3d6461313660942d6088 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Wed, 8 Nov 2023 20:45:09 +0100 Subject: [PATCH] secret as well --- internal/hetzner/hetzneragent.go | 2 +- internal/hetzner/hetzneragent_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/hetzner/hetzneragent.go b/internal/hetzner/hetzneragent.go index b2deee7..acff7aa 100644 --- a/internal/hetzner/hetzneragent.go +++ b/internal/hetzner/hetzneragent.go @@ -46,7 +46,7 @@ func generateConfig(cfg *config.Config, name string) (string, error) { envConfig := map[string]interface{}{ "WOODPECKER_SERVER": fmt.Sprintf("%s", cfg.WoodpeckerGrpc), "WOODPECKER_GRPC_SECURE": true, - "WOODPECKER_AGENT_SECRET": fmt.Sprintf(`"%s"`, cfg.WoodpeckerAgentSecret), + "WOODPECKER_AGENT_SECRET": fmt.Sprintf("%s", cfg.WoodpeckerAgentSecret), "WOODPECKER_FILTER_LABELS": fmt.Sprintf(`"%s"`, cfg.WoodpeckerLabelSelector), "WOODPECKER_HOSTNAME": fmt.Sprintf(`"%s"`, name), } diff --git a/internal/hetzner/hetzneragent_test.go b/internal/hetzner/hetzneragent_test.go index 3fbbf5c..c0d5977 100644 --- a/internal/hetzner/hetzneragent_test.go +++ b/internal/hetzner/hetzneragent_test.go @@ -36,7 +36,7 @@ write_files: volumes: - /var/run/docker.sock:/var/run/docker.sock environment: - - WOODPECKER_AGENT_SECRET="Geheim1!" + - WOODPECKER_AGENT_SECRET=Geheim1! - WOODPECKER_FILTER_LABELS="uploadfilter24.eu/instance-role=WoodpeckerTest" - WOODPECKER_GRPC_SECURE=true - WOODPECKER_HOSTNAME="test-instance"