update README
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2024-12-27 09:20:00 +01:00
parent 0c8eebbeb9
commit bf14fd96d6
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -22,3 +22,25 @@ Where:
- `<domain>`: Domain of your pacco instance - `<domain>`: Domain of your pacco instance
- `<token>`: Token of your user - `<token>`: Token of your user
- `<gpg_key>`: GPG key used to sign the package - `<gpg_key>`: GPG key used to sign the package
### 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`