0
0
mirror of https://github.com/thegeeklab/wp-gitea-release.git synced 2024-06-02 18:29:43 +02:00
Woodpecker CI plugin to publish files and artifacts to Gitea releases
Go to file
2023-09-15 15:03:07 +01:00
.github Add some basic issue template content 2019-01-21 21:02:08 +01:00
docker Update Dockerfile.windows.1809 2022-12-07 14:18:51 +00:00
.dockerignore Restructuring of build process 2017-09-02 15:40:25 +02:00
.drone.yml (fix) use correct arm runner 2023-09-15 14:48:58 +01:00
.gitignore Updated to current build process (#2) 2018-03-15 20:43:32 +01:00
go.mod (fix) use correct arm runner 2023-09-15 14:48:58 +01:00
go.sum (maint) move to harness.drone.io 2022-12-07 13:31:11 +00:00
LICENSE Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
main.go (maint) move to harness.drone.io 2022-12-07 13:31:11 +00:00
plugin.go (maint) move to harness.drone.io 2022-12-07 13:31:11 +00:00
README.md Unified documentation and readme 2019-02-15 11:58:33 +01:00
release.go Update Gitea SDK to v0.13.0 2020-09-16 08:01:14 +02:00
utils.go (maint) move to harness.drone.io 2022-12-07 13:31:11 +00:00

drone-gitea-release

Build Status Gitter chat Join the discussion at https://discourse.drone.io Drone questions at https://stackoverflow.com Go Doc Go Report

Drone plugin to publish files and artifacts to Gitea release. For the usage information and a listing of the available options please take a look at the docs.

Build

Build the binary with the following command:

export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on

go build -v -a -tags netgo -o release/linux/amd64/drone-gitea-release

Docker

Build the Docker image with the following command:

docker build \
  --label org.label-schema.build-date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
  --label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \
  --file docker/Dockerfile.linux.amd64 --tag plugins/gitea-release .

Usage

docker run --rm \
  -e PLUGIN_BASE_URL=https://try.gitea.io \
  -e PLUGIN_API_KEY=your-api-key \
  -e PLUGIN_FILES=build/* \
  -e DRONE_REPO_OWNER=gitea \
  -e DRONE_REPO_NAME=test \
  -e DRONE_BUILD_EVENT=tag \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  plugins/gitea-release