This commit is contained in:
Luca Bilke 2023-11-24 15:37:12 +01:00
commit e644c47ff1
1 changed files with 12 additions and 10 deletions

View File

@ -31,29 +31,31 @@ steps:
package-targz:
image: alpine
commands: |
tar czf $${CI_REPO_NAME}.tar.gz --directory=$${CI_WORKSPACE}/pkg .
tar czf $${CI_REPO_NAME}-$${CI_COMMIT_TAG}.tar.gz --directory=$${CI_WORKSPACE}/pkg .
publish:
image: woodpeckerci/plugin-gitea-release
settings:
base_url: https://git.snaile.de
files:
- "${CI_REPO_NAME}.tar.gz"
- "${CI_REPO_NAME}.xbps"
- "${CI_REPO_NAME}-$${CI_COMMIT_TAG}.tar.gz"
api_key:
from_secret: GITEA_RELEASE_KEY
from_secret: gitea_release
target: main
publish-xbps:
image: alpine
environment:
- XBPS_TARGET_ARCH="x86_64"
secrets:
- source: XBPS_SIGNING_KEYPHRASE
- source: xbps_pem_passphrase
target: XBPS_PASSPHRASE
volumes:
- /srv/www:/target
- /etc/woodpecker.pem:/etc/privatekey.pem:ro
- /srv/xbps:/target
- /etc/woodpecker/:/etc/woodpecker:ro
commands: |
export XBPS_TARGET_ARCH
tar xvf xbps-static-latest.x86_64-musl.tar.xz -C /
mv $${CI_REPO_NAME}.xbps /target
xbps-rindex -a /target/$${CI_REPO_NAME}.xbps
xbps-rindex --sign-pkg --signedby "$${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>" --privkey /etc/privkey.pem /target/$${CI_REPO_NAME}.xbps
mv $${CI_REPO_NAME}-$${CI_COMMIT_TAG}.x86_64.xbps /target
xbps-rindex -daf /target/$${CI_REPO_NAME}-$${CI_COMMIT_TAG}.x86_64.xbps
xbps-rindex -dS --signedby "$${CI_COMMIT_AUTHOR} <$${CI_COMMIT_AUTHOR_EMAIL}>" --privkey /etc/woodpecker/privkey.pem /target/$${CI_REPO_NAME}-$${CI_COMMIT_TAG}.x86_64.xbps