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.
This commit is contained in:
@@ -11,9 +11,9 @@ steps:
|
|||||||
image: git.unkin.net/unkin/almalinux9-base:20260606
|
image: git.unkin.net/unkin/almalinux9-base:20260606
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
VERSION=$(echo ${CI_COMMIT_TAG} | sed 's/^v//')
|
VERSION=$$(echo ${CI_COMMIT_TAG} | sed 's/^v//')
|
||||||
FILE="terraform-provider-artifactapi_${VERSION}_linux_amd64.zip"
|
FILE="terraform-provider-artifactapi_$${VERSION}_linux_amd64.zip"
|
||||||
curl -f -X PUT \
|
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" \
|
-H "Content-Type: application/zip" \
|
||||||
--data-binary @"$${FILE}"
|
--data-binary @"$${FILE}"
|
||||||
|
|||||||
Reference in New Issue
Block a user