From 1a038088473ef3cd9f13cec669d1b104c1d7bbb4 Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Wed, 8 Nov 2023 20:43:36 +0100 Subject: [PATCH] grpc endpoint must not be in quotes --- 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 cca9605..b2deee7 100644 --- a/internal/hetzner/hetzneragent.go +++ b/internal/hetzner/hetzneragent.go @@ -44,7 +44,7 @@ type UserDataConfig struct { func generateConfig(cfg *config.Config, name string) (string, error) { envConfig := map[string]interface{}{ - "WOODPECKER_SERVER": fmt.Sprintf(`"%s"`, cfg.WoodpeckerGrpc), + "WOODPECKER_SERVER": fmt.Sprintf("%s", cfg.WoodpeckerGrpc), "WOODPECKER_GRPC_SECURE": true, "WOODPECKER_AGENT_SECRET": fmt.Sprintf(`"%s"`, cfg.WoodpeckerAgentSecret), "WOODPECKER_FILTER_LABELS": fmt.Sprintf(`"%s"`, cfg.WoodpeckerLabelSelector), diff --git a/internal/hetzner/hetzneragent_test.go b/internal/hetzner/hetzneragent_test.go index 0b337b1..3fbbf5c 100644 --- a/internal/hetzner/hetzneragent_test.go +++ b/internal/hetzner/hetzneragent_test.go @@ -40,7 +40,7 @@ write_files: - WOODPECKER_FILTER_LABELS="uploadfilter24.eu/instance-role=WoodpeckerTest" - WOODPECKER_GRPC_SECURE=true - WOODPECKER_HOSTNAME="test-instance" - - WOODPECKER_SERVER="grpc-test.woodpecker.test.tld:443" + - WOODPECKER_SERVER=grpc-test.woodpecker.test.tld:443 path: /root/docker-compose.yml runcmd: - [ sh, -xc, "cd /root; docker run --rm --privileged multiarch/qemu-user-static --reset -p yes; docker compose up -d" ]