Files
terraform-provider-artifactapi/.woodpecker/release.yml
T
unkinben be28507b92
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
feat: add zip packaging target and woodpecker release pipeline
2026-06-22 23:36:03 +10:00

22 lines
644 B
YAML

when:
- event: tag
steps:
- name: package
image: golang:1.25
commands:
- apt-get update && apt-get install -y zip
- make package VERSION=${CI_COMMIT_TAG}
- name: upload
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 \
"$${ARTIFACTAPI_URL}/api/v2/remotes/$${ARTIFACTAPI_REPO}/files/unkin/artifactapi/$${FILE}" \
-H "Content-Type: application/zip" \
--data-binary @"$${FILE}"