mirror of
https://github.com/thegeeklab/wp-gitea-release.git
synced 2024-11-22 00:00:41 +00:00
2.3 KiB
2.3 KiB
title |
---|
wp-gitea-release |
Woodpecker CI plugin to publish files and artifacts to Gitea releases.
{{< toc >}}
Usage
{{< hint type=note >}} Only tag events are supported by this plugin. Running the plugin on other events will result in an error. {{< /hint >}}
steps:
- name: publish
image: quay.io/thegeeklab/wp-gitea-release
settings:
api_key: randomstring
base_url: https://gitea.rknet.org
files: build/*
Parameters
{{< propertylist name=wp-gitea-release.data sort=name >}}
Build
Build the binary with the following command:
make build
Build the container image with the following command:
docker build --file Containerfile.multiarch --tag thegeeklab/wp-gitea-release .
Test
docker run --rm \
-e PLUGIN_BASE_URL=https://try.gitea.io \
-e PLUGIN_API_KEY=randomstring \
-e PLUGIN_FILES=build/* \
-e CI_REPO_OWNER=gitea \
-e CI_REPO_NAME=test \
-e CI_PIPELINE_EVENT=tag \
-v $(pwd):/build:z \
-w /build \
thegeeklab/wp-gitea-release