mirror of
https://github.com/thegeeklab/wp-gitea-release.git
synced 2024-11-25 09:20:39 +00:00
2.4 KiB
2.4 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 >}}
kind: pipeline
name: default
steps:
- name: publish
image: quay.io/thegeeklab/wp-gitea-release
settings:
api_key: 3LbMg9Kncpdkhjp3bh3dMnKNXLjVMTsXk4sM
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=your-api-key \
-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