2024-01-04 22:26:33 +00:00
|
|
|
---
|
|
|
|
title: wp-gitea-release
|
|
|
|
---
|
|
|
|
|
|
|
|
[![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/wp-gitea-release/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/wp-gitea-release)
|
|
|
|
[![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/wp-gitea-release)
|
|
|
|
[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/wp-gitea-release)
|
|
|
|
[![Go Report Card](https://goreportcard.com/badge/github.com/thegeeklab/wp-gitea-release)](https://goreportcard.com/report/github.com/thegeeklab/wp-gitea-release)
|
|
|
|
[![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/wp-gitea-release)](https://github.com/thegeeklab/wp-gitea-release/graphs/contributors)
|
|
|
|
[![Source: GitHub](https://img.shields.io/badge/source-github-blue.svg?logo=github&logoColor=white)](https://github.com/thegeeklab/wp-gitea-release)
|
|
|
|
[![License: Apache-2.0](https://img.shields.io/github/license/thegeeklab/wp-gitea-release)](https://github.com/thegeeklab/wp-gitea-release/blob/main/LICENSE)
|
|
|
|
|
2024-01-04 22:47:02 +00:00
|
|
|
Woodpecker CI plugin to publish files and artifacts to Gitea releases.
|
2024-01-04 22:26:33 +00:00
|
|
|
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
<!-- spellchecker-disable -->
|
|
|
|
{{< toc >}}
|
|
|
|
<!-- spellchecker-enable -->
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
{{< hint type=note >}}
|
2024-01-04 22:47:02 +00:00
|
|
|
Only tag events are supported by this plugin. Running the plugin on other events will result in an error.
|
2024-01-04 22:26:33 +00:00
|
|
|
{{< /hint >}}
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
steps:
|
2024-01-04 22:47:02 +00:00
|
|
|
- name: publish
|
2024-01-04 22:26:33 +00:00
|
|
|
image: quay.io/thegeeklab/wp-gitea-release
|
|
|
|
settings:
|
2024-03-12 19:43:39 +00:00
|
|
|
api_key: randomstring
|
2024-01-04 22:47:02 +00:00
|
|
|
base_url: https://gitea.rknet.org
|
|
|
|
files: build/*
|
2024-01-04 22:26:33 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
<!-- spellchecker-disable -->
|
|
|
|
{{< propertylist name=wp-gitea-release.data sort=name >}}
|
|
|
|
<!-- spellchecker-enable -->
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
Build the binary with the following command:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
make build
|
|
|
|
```
|
|
|
|
|
|
|
|
Build the container image with the following command:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
docker build --file Containerfile.multiarch --tag thegeeklab/wp-gitea-release .
|
|
|
|
```
|
|
|
|
|
|
|
|
## Test
|
|
|
|
|
|
|
|
```Shell
|
|
|
|
docker run --rm \
|
2024-01-04 22:47:02 +00:00
|
|
|
-e PLUGIN_BASE_URL=https://try.gitea.io \
|
2024-03-12 19:43:39 +00:00
|
|
|
-e PLUGIN_API_KEY=randomstring \
|
2024-01-04 22:47:02 +00:00
|
|
|
-e PLUGIN_FILES=build/* \
|
|
|
|
-e CI_REPO_OWNER=gitea \
|
|
|
|
-e CI_REPO_NAME=test \
|
|
|
|
-e CI_PIPELINE_EVENT=tag \
|
2024-01-04 22:26:33 +00:00
|
|
|
-v $(pwd):/build:z \
|
|
|
|
-w /build \
|
|
|
|
thegeeklab/wp-gitea-release
|
|
|
|
```
|