0
0
mirror of https://github.com/thegeeklab/wp-gitea-release.git synced 2024-11-09 17:30:39 +00:00
Woodpecker CI plugin to publish files and artifacts to Gitea releases
Go to file
Thomas Boerger ca63c2ddea
Merge pull request #23 from 6543-forks/vendor-gitea-sdk
Update code.gitea.io/sdk/gitea to v0.12.0
2020-06-12 21:58:56 +02:00
.github Add some basic issue template content 2019-01-21 21:02:08 +01:00
docker Fix manifest template helper 2019-02-25 22:20:12 +01:00
.dockerignore Restructuring of build process 2017-09-02 15:40:25 +02:00
.drone.jsonnet Add a reliable version and integrate libsonnet definition 2019-02-15 10:25:53 +01:00
.drone.windows.jsonnet Add a reliable version and integrate libsonnet definition 2019-02-15 10:25:53 +01:00
.drone.windows.yml Fix microbadger settings and enable auto_tag for manifest 2019-03-28 09:31:56 +01:00
.drone.yml Fix microbadger settings and enable auto_tag for manifest 2019-03-28 09:31:56 +01:00
.gitignore Updated to current build process (#2) 2018-03-15 20:43:32 +01:00
go.mod go mod tidy 2020-05-22 11:39:08 +02:00
go.sum go mod tidy 2020-05-22 11:39:08 +02:00
LICENSE Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
main.go Drop import of unused fmt package 2019-02-18 23:47:39 +01:00
pipeline.libsonnet Fix microbadger settings and enable auto_tag for manifest 2019-03-28 09:31:56 +01:00
plugin.go Add insecure https support (#4) 2018-03-28 09:55:21 +08:00
README.md Unified documentation and readme 2019-02-15 11:58:33 +01:00
release.go migrate 2020-05-22 11:42:46 +02:00
utils.go Migrated to 0.5 structure and updated documentation 2016-08-26 10:38:22 +02: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