Drone plugin for creating and tagging Gitea releases
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
TP Honey bd912f262f
Update Dockerfile.windows.1809
4 months ago
.github Add some basic issue template content 4 years ago
docker Update Dockerfile.windows.1809 4 months ago
.dockerignore Restructuring of build process 6 years ago
.drone.yml (maint) move to harness.drone.io 4 months ago
.gitignore Updated to current build process (#2) 5 years ago
LICENSE Implemented initial version based on google/go-github 7 years ago
README.md Unified documentation and readme 4 years ago
go.mod (maint) move to harness.drone.io 4 months ago
go.sum (maint) move to harness.drone.io 4 months ago
main.go (maint) move to harness.drone.io 4 months ago
plugin.go (maint) move to harness.drone.io 4 months ago
release.go Update Gitea SDK to v0.13.0 3 years ago
utils.go (maint) move to harness.drone.io 4 months ago

README.md

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