1 Commits

Author SHA1 Message Date
unkinben d4bbf6a983 feat: add zip packaging target and woodpecker release pipeline 2026-06-23 00:04:22 +10:00
+4 -3
View File
@@ -3,18 +3,19 @@ when:
steps:
- name: package
image: git.unkin.net/unkin/almalinux9-gobuilder:20260606
image: golang:1.25
commands:
- apt-get update && apt-get install -y zip
- make package VERSION=${CI_COMMIT_TAG}
- name: upload
image: git.unkin.net/unkin/almalinux9-base:20260606
image: curlimages/curl:latest
secrets: [artifactapi_url, artifactapi_repo]
commands:
- |
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}" \
"$${ARTIFACTAPI_URL}/api/v2/remotes/$${ARTIFACTAPI_REPO}/files/unkin/artifactapi/$${FILE}" \
-H "Content-Type: application/zip" \
--data-binary @"$${FILE}"