2024-05-14 11:13:06 +02:00
|
|
|
---
|
|
|
|
name: Gitea Generic Package
|
|
|
|
icon: https://raw.githubusercontent.com/go-gitea/gitea/main/assets/logo.svg
|
|
|
|
description: Plugin to Publish Artifacts to Gitea Generic Package Registry.
|
|
|
|
author: OCram85
|
|
|
|
tags: [Gitea, publish-package, container, build]
|
|
|
|
containerImage: ocram85/plugin-gitea-package
|
|
|
|
containerImageUrl: https://hub.docker.com/r/ocram85/plugin-gitea-package
|
|
|
|
url: https://codeberg.org/woodpecker-plugins/docker-buildx
|
|
|
|
---
|
|
|
|
|
|
|
|
# Overview
|
|
|
|
|
|
|
|
Woodpecker CI plugin to upload any file to the _Gitea Generic Package Registry_.
|
|
|
|
|
|
|
|
For details about the features and limits of the _Generic Package Registry_ their [docs](https://docs.gitea.com/usage/packages/generic).
|
|
|
|
|
|
|
|
## Settings
|
|
|
|
|
2025-02-24 09:43:14 +01:00
|
|
|
| Settings Name | Default | Description |
|
|
|
|
| ----------------- | ------- | ------------------------------------------- |
|
|
|
|
| `user` | _none_ | Gitea user for basic auth |
|
|
|
|
| `password` | _none_ | Password for basic auth |
|
|
|
|
| `debug` | _none_ | Enables debug output if it's set to `true`. |
|
|
|
|
| `owner` | _none_ | Package owner |
|
|
|
|
| `package_name` | _none_ | The package name |
|
|
|
|
| `package_version` | _none_ | Package version |
|
|
|
|
| `file_source` | _none_ | File source path for upload. |
|
|
|
|
| `file_name` | _none_ | Package file name |
|
|
|
|
| `update` | `false` | Allow update existing package files |
|
2024-05-14 11:13:06 +02:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag, cron]
|
|
|
|
- event: push
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
depends_on:
|
2025-02-24 09:43:14 +01:00
|
|
|
- 'ci'
|
2024-05-14 11:13:06 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
next:
|
|
|
|
image: ocram85/plugin-gitea-package:latest
|
|
|
|
pull: true
|
2025-02-24 09:43:14 +01:00
|
|
|
secrets: [gitea_user, gitea_passwd]
|
2024-05-14 11:13:06 +02:00
|
|
|
settings:
|
|
|
|
user:
|
|
|
|
from_secret: gitea_user
|
|
|
|
password:
|
|
|
|
from_secret: gitea_passwd
|
2025-02-24 09:43:14 +01:00
|
|
|
debug: 'true'
|
|
|
|
owner: 'plugins'
|
|
|
|
package_name: 'dummy_package'
|
|
|
|
package_version: '0.1.0'
|
|
|
|
file_source: './README.md'
|
|
|
|
file_name: 'readme.md'
|
|
|
|
update: 'true'
|
2024-05-14 11:13:06 +02:00
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
```
|