Gitea and Forgejo plugin to assign packages repositories.
- Go 63.5%
- Shell 28.3%
- Dockerfile 8.2%
|
|
||
|---|---|---|
| .gitignore | ||
| .goreleaser.yaml | ||
| .markdownlint.json | ||
| .prettierrc | ||
| .test.env | ||
| Containerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
| renovate.json | ||
| test.sh | ||
Woodpecker plugin to assign package to repository
This repository assign package to repository. If the package is already assigned to a different one, first it unlink the repository.
In case of mode: file it reads content of a file where each line is a
container, then assign those to the repository.
Usage
It can be used at any event.
steps:
- name: Assign package to repository
image: code.thinkaboutit.tech/pandora/assign-package.woodpecker
settings:
package_type: container
token:
from_secret: ci-token
debug: true
The token needs write:package scope.
Settings
Base settings
| Name | Default value | Description |
|---|---|---|
| owner | CI_REPO_OWNER | Owner of package and repository |
| repo_name | CI_REPO_NAME | Name of repository |
| package_name | CI_REPO_NAME | Name of package |
| package_type | Type of the package | |
| forgejo_token | Access token for Forgejo | |
| forgejo_url | CI_FORGE_URL | Address of Forgejo |
| mode | repo | It can be 'repo' or 'file' |
Mode repo
No additional settings.
Mode file
| Name | Default value | Description |
|---|---|---|
| filename | image_list | File tht plugin read |