plugin woodpecker for https://docs.gitea.com/usage/packages/go/ to publisher golang package
10K+
woodpecker-gitea-publisher-golang
plugin as https://woodpecker-ci.org/ for https://docs.gitea.com/usage/packages/go/ to publisher golang package
CI_FORGE_URLsettings.gitea-publish-golang-path-go to publish dir go.mod one by onedist/go-mod-upload.json
settings.gitea-publish-golang-update-result-root-path to change out root path, default distsettings.gitea-publish-golang-update-result-file-name to change out file name, default go-mod-upload.json| Name | Required | Default value | Description |
|---|---|---|---|
debug | no | false | open debug log or open by env PLUGIN_DEBUG |
gitea-publish-golang-api-key | yes | gitea api key, Required | |
gitea-publish-golang-base-url | no | gitea base url, default by CI_FORGE_URL | |
gitea-publish-golang-insecure | no | false | gitea insecure enable |
gitea-publish-golang-dry-run | no | false | dry run mode |
gitea-publish-golang-path-go | no | publish go package is dir to find go.mod, will append project root path, default is this project root path | |
gitea-publish-golang-remove-paths | no | ["dist"] | publish go package remove paths, this path under gitea-publish-golang-path-go, default will remove dist |
gitea-publish-golang-update-result-root-path | no | dist | out result root path append CI Workspace, default dist |
gitea-publish-golang-update-result-file-name | no | go-mod-upload.json | out file name, default go-mod-upload.json |
Hide Settings:
| Name | Required | Default value | Description |
|---|---|---|---|
timeout_second | no | 10 | command timeout setting by second |
gitea-publish-golang-timeout-second | no | 60 | gitea release api timeout second, default 60, less 30 |
woodpecker-kit-steps-transfer-file-path | no | .woodpecker_kit.steps.transfer | Steps transfer file path, default by wd_steps_transfer.DefaultKitStepsFileName |
woodpecker-kit-steps-transfer-disable-out | no | false | Steps transfer write disable out |
dockerlabels:
backend: docker
steps:
woodpecker-gitea-publisher-golang:
image: sinlov/woodpecker-gitea-publisher-golang:latest
pull: false
settings:
# debug: true
# gitea-publish-golang-dry-run: true # dry run mode
gitea-publish-golang-api-key: # gitea api key, Required
from_secret: gitea_api_key_release
gitea-publish-golang-path-go: "" # publish go package is dir to find go.mod, will append project root path, default is this project root path
gitea-publish-golang-remove-paths: # publish go package remove paths, this path under `gitea-publish-golang-path-go`, default will remove `dist`
- "dist"
# gitea-publish-golang-update-result-root-path: "dist" # out result root path append CI Workspace, default `dist`
# gitea-publish-golang-update-result-file-name: "go-mod-upload.json" # out file name, default `go-mod-upload.json`
local, must install at local and effective at evn PATH
go install -a github.com/woodpecker-kit/woodpecker-gitea-publisher-golang/cmd/woodpecker-gitea-publisher-golang@latest
go install -v github.com/woodpecker-kit/woodpecker-gitea-publisher-golang/cmd/[email protected]
labels:
backend: local
steps:
woodpecker-gitea-publisher-golang:
image: woodpecker-gitea-publisher-golang
settings:
# debug: true
# gitea-publish-golang-dry-run: true # dry run mode
gitea-publish-golang-api-key: # gitea api key, Required
from_secret: gitea_api_key_release
gitea-publish-golang-path-go: "" # publish go package is dir to find go.mod, will append project root path, default is this project root path
gitea-publish-golang-remove-paths: # publish go package remove paths, this path under `gitea-publish-golang-path-go`, default will remove `dist`
- "dist"
# gitea-publish-golang-update-result-root-path: "dist" # out result root path append CI Workspace, default `dist`
# gitea-publish-golang-update-result-file-name: "go-mod-upload.json" # out file name, default `go-mod-upload.json`
labels:
backend: docker
steps:
woodpecker-gitea-publisher-golang:
image: sinlov/woodpecker-gitea-publisher-golang:latest
pull: false
settings:
debug: true
gitea-publish-golang-dry-run: true # dry run mode
gitea-publish-golang-timeout-second: 120 # gitea release api timeout second, default 60, less 30
gitea-publish-golang-api-key: # gitea api key, Required
from_secret: gitea_api_key_release
gitea-publish-golang-base-url: "https://gitea.example.com" # default by CI_FORGE_URL auto to find
gitea-publish-golang-insecure: true # gitea insecure enable
gitea-publish-golang-path-go: "sub-go" # publish go package is dir to find go.mod, will append project root path, default is this project root path
gitea-publish-golang-remove-paths: # publish go package remove paths, this path under `gitea-publish-golang-path-go`, default will remove `dist`
- "dist"
gitea-publish-golang-update-result-root-path: "dist" # out result root path append CI Workspace, default `dist`
gitea-publish-golang-update-result-file-name: "go-mod-upload.json" # out file name, default `go-mod-upload.json`
tempDir/woodpecker-gitea-publisher-golang/{repo-hostname}/{owner}/{repo}/{build_number}zip.CreateFromDir, this method will check as https://semver.org/, so this kit use CI_COMMIT_TAG to generate versiongitea-publish-golang-dry-run mode can pass all check, but not publish to gitealatest, this will not pass zip.CreateFromDircheck, so will not publish to giteaContent type
Image
Digest
sha256:26a764163…
Size
6.5 MB
Last updated
over 1 year ago
docker pull sinlov/woodpecker-gitea-publisher-golang