add CI files to build & release
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/tag/release Pipeline was successful

This commit is contained in:
2026-07-12 09:13:55 -04:00
parent db7ad3eec2
commit ad0b7c3966
2 changed files with 35 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
when:
- event: tag
steps:
build:
image: golang:1.26-alpine3.23
commands:
- go mod download
- CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath -o qbittorrent-sentinel
publish:
image: alpine:3.23
commands:
- apk add --no-cache curl
- |
echo "Uploading qbittorrent-sentinel..."
curl -sS -X POST \
-H "Authorization: token $GITEA_RELEASE_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary "@qbittorrent-sentinel" \
"https://git.sbstp.ca/api/v1/repos/${CI_REPO}/releases/tags/${CI_COMMIT_TAG}/assets?name=qbittorrent-sentinel"
environment:
GITEA_RELEASE_TOKEN:
from_secret: gitea_release_token