Go to file
Anton Zadvorny a745fadc15
All checks were successful
continuous-integration/drone/push Build is passing
Update build image
2022-07-08 14:40:14 +03:00
.github Add some basic issue template content 2020-05-08 02:57:58 +03:00
docker Fix manifest template helper 2020-05-08 02:57:58 +03:00
.dockerignore Restructuring of build process 2017-09-02 15:40:25 +02:00
.drone.docker.yml Update build image 2022-07-08 14:40:14 +03:00
.drone.jsonnet Add a reliable version and integrate libsonnet definition 2020-05-08 02:57:58 +03:00
.drone.windows.jsonnet Add a reliable version and integrate libsonnet definition 2020-05-08 02:57:58 +03:00
.drone.windows.yml Fix microbadger settings and enable auto_tag for manifest 2020-05-08 02:57:58 +03:00
.drone.yml Fix microbadger settings and enable auto_tag for manifest 2020-05-08 02:57:58 +03:00
.gitignore Updated to current build process (#2) 2018-03-15 20:43:32 +01:00
go.mod Tidy go modules 2020-05-08 02:57:58 +03:00
go.sum Tidy go modules 2020-05-08 02:57:58 +03:00
LICENSE Implemented initial version based on google/go-github 2015-11-23 22:35:33 +01:00
main.go Support branches 2020-05-08 02:57:58 +03:00
pipeline.libsonnet Fix microbadger settings and enable auto_tag for manifest 2020-05-08 02:57:58 +03:00
plugin.go Make latest release always draft 2020-05-08 13:25:38 +03:00
README.md Unified documentation and readme 2020-05-08 02:57:58 +03:00
release.go Support only master branch 2020-05-08 03:40:15 +03: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