0
0
mirror of https://github.com/thegeeklab/wp-gitea-release.git synced 2024-09-19 15:12:45 +02:00
Woodpecker CI plugin to publish files and artifacts to Gitea releases
Go to file
2020-12-11 22:34:56 +01: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 golang 1.13 2020-09-16 08:26:19 +02:00
.drone.yml golang 1.13 2020-09-16 08:26:19 +02:00
.gitignore Updated to current build process (#2) 2018-03-15 20:43:32 +01:00
go.mod github.com/joho/godotenv v1.2.0 -> v1.3.0 2020-12-11 22:34:56 +01:00
go.sum github.com/joho/godotenv v1.2.0 -> v1.3.0 2020-12-11 22:34:56 +01:00
LICENSE Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
main.go github.com/sirupsen/logrus v1.0.5 -> v1.7.0 2020-12-11 22:33:26 +01:00
pipeline.libsonnet Fix microbadger settings and enable auto_tag for manifest 2019-03-28 09:31:56 +01:00
plugin.go Update Gitea SDK to v0.13.0 2020-09-16 08:01:14 +02: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 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