2024-12-27 08:03:11 +00:00
|
|
|
# pacco-build
|
|
|
|
Build Container for PKGBUILDs with auto push to pacco.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
Add the following to your repos `.woodpecker` jobs:
|
|
|
|
|
|
|
|
```yml
|
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
branch: main
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "PKGBUILD"
|
|
|
|
image: git.hydrar.de/jmarya/pacco-build:latest
|
|
|
|
commands:
|
|
|
|
- buildpkg <repo> <arch> <domain> <token> <gpg_key>
|
|
|
|
```
|
|
|
|
|
|
|
|
Where:
|
|
|
|
- `<repo>`: Name of the repo you want to push to
|
|
|
|
- `<arch>`: Architecture you are building for
|
|
|
|
- `<domain>`: Domain of your pacco instance
|
|
|
|
- `<token>`: Token of your user
|
|
|
|
- `<gpg_key>`: GPG key used to sign the package
|
2024-12-27 08:20:00 +00:00
|
|
|
|
|
|
|
### Using Secrets
|
|
|
|
You can pass in sensitive values via secrets.
|
|
|
|
|
|
|
|
```yml
|
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
branch: main
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "PKGBUILD"
|
|
|
|
image: git.hydrar.de/jmarya/pacco-build:latest
|
|
|
|
commands:
|
|
|
|
- buildpkg <repo> <arch> <domain> "$TOKEN" "$KEY"
|
|
|
|
environment:
|
|
|
|
TOKEN:
|
|
|
|
from_secret: pacco_token
|
|
|
|
KEY:
|
|
|
|
from_secret: gpg_key
|
|
|
|
```
|
|
|
|
|
|
|
|
> **Note:** The passed GPG Key needs to be a private key in ASCII Armor and every newline escaped with `\n`
|