From 1c58360d3c34a219d1a90162ff12ce9c6ef26102 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Fri, 3 Jul 2026 12:34:52 +1000 Subject: [PATCH] Add on-tag release pipeline to upload the provider to artifactapi Publish the provider so it can be consumed from terraform-vault: on a tag, package the linux_amd64 build into a versioned zip and PUT it to the artifactapi terraform registry, mirroring terraform-provider-artifactapi's release flow. - Add .woodpecker/release.yml (event: tag) running make package + curl upload to remotes/terraform-unkin/files/unkin/litellmvaultsecret/ --- .woodpecker/release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .woodpecker/release.yml diff --git a/.woodpecker/release.yml b/.woodpecker/release.yml new file mode 100644 index 0000000..ece5f3b --- /dev/null +++ b/.woodpecker/release.yml @@ -0,0 +1,19 @@ +when: + - event: tag + +steps: + - name: package + image: git.unkin.net/unkin/almalinux9-gobuilder:20260606 + commands: + - make package VERSION=${CI_COMMIT_TAG} + + - name: upload + image: git.unkin.net/unkin/almalinux9-base:20260606 + commands: + - | + VERSION=$$(echo ${CI_COMMIT_TAG} | sed 's/^v//') + FILE="terraform-provider-litellmvaultsecret_$${VERSION}_linux_amd64.zip" + curl -f -X PUT \ + "https://artifactapi3.k8s.syd1.au.unkin.net/api/v2/remotes/terraform-unkin/files/unkin/litellmvaultsecret/$${FILE}" \ + -H "Content-Type: application/zip" \ + --data-binary @"$${FILE}"