From eeb4a6063936237debf22b40c34a677eea5ea0ef Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Tue, 23 Jun 2026 00:39:21 +1000 Subject: [PATCH] fix: escape shell variables in release pipeline Woodpecker interpolates ${VERSION} as a CI variable (empty) before the shell sees it. Use $$ escaping so the shell assignment and references survive YAML interpolation. --- .woodpecker/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker/release.yml b/.woodpecker/release.yml index 90e8222..471f34b 100644 --- a/.woodpecker/release.yml +++ b/.woodpecker/release.yml @@ -11,9 +11,9 @@ steps: image: git.unkin.net/unkin/almalinux9-base:20260606 commands: - | - VERSION=$(echo ${CI_COMMIT_TAG} | sed 's/^v//') - FILE="terraform-provider-artifactapi_${VERSION}_linux_amd64.zip" + VERSION=$$(echo ${CI_COMMIT_TAG} | sed 's/^v//') + FILE="terraform-provider-artifactapi_$${VERSION}_linux_amd64.zip" curl -f -X PUT \ - "https://artifactapi3.k8s.syd1.au.unkin.net/api/v2/remotes/terraform-unkin/files/unkin/artifactapi/$${FILE}" \ + "https://artifactapi3.k8s.syd1.au.unkin.net/api/v2/remotes/terraform-unkin/files/unkin/artifactapi/$${FILE}" \ -H "Content-Type: application/zip" \ --data-binary @"$${FILE}"