Go to file
2019-02-18 23:14:31 +01:00
.github Add some basic issue template content 2019-01-21 21:02:08 +01:00
docker Add a reliable version and integrate libsonnet definition 2019-02-15 10:25:53 +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 Add a reliable version and integrate libsonnet definition 2019-02-15 10:25:53 +01:00
.drone.yml Add a reliable version and integrate libsonnet definition 2019-02-15 10:25:53 +01:00
.gitignore Updated to current build process (#2) 2018-03-15 20:43:32 +01:00
go.mod Replace godep with gomod 2019-02-18 23:14:31 +01:00
go.sum Replace godep with gomod 2019-02-18 23:14:31 +01:00
LICENSE Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
main.go Add a reliable version and integrate libsonnet definition 2019-02-15 10:25:53 +01:00
pipeline.libsonnet Add a reliable version and integrate libsonnet definition 2019-02-15 10:25:53 +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 Add title to release 2018-03-03 12:09:01 +01: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