2023-11-22 14:18:38 +01:00
|
|
|
when:
|
|
|
|
event: tag
|
2023-11-22 11:52:55 +01:00
|
|
|
steps:
|
2023-11-23 16:43:43 +01:00
|
|
|
prep:
|
|
|
|
image: alpine
|
|
|
|
commands: |
|
|
|
|
wget http://repo-default.voidlinux.org/static/xbps-static-latest.x86_64-musl.tar.xz
|
|
|
|
|
2023-11-22 11:52:55 +01:00
|
|
|
build:
|
2023-11-24 18:39:19 +01:00
|
|
|
image: gcc
|
|
|
|
environment:
|
|
|
|
- BUILD_DEPS="pkgconf libxcb-util-dev"
|
2023-11-22 11:52:55 +01:00
|
|
|
commands: |
|
2023-11-24 18:39:19 +01:00
|
|
|
apt install -y $${BUILD_DEPS}
|
2023-11-23 16:43:43 +01:00
|
|
|
make install DESTDIR="$${CI_WORKSPACE}/pkg" PREFIX="/usr"
|
2023-11-22 20:13:22 +01:00
|
|
|
|
2023-11-23 16:43:43 +01:00
|
|
|
package-xbps:
|
2023-11-22 20:13:22 +01:00
|
|
|
image: alpine
|
2023-11-23 16:43:43 +01:00
|
|
|
environment:
|
|
|
|
- LICENSE="GPL-2.0"
|
|
|
|
- SHORT_DESCRIPTION="Customized dwmblocks-async"
|
2023-11-22 20:13:22 +01:00
|
|
|
commands: |
|
2023-11-23 16:43:43 +01:00
|
|
|
tar xvf xbps-static-latest.x86_64-musl.tar.xz -C /
|
2023-11-22 20:13:22 +01:00
|
|
|
xbps-create -A x86_64 \
|
2023-11-23 16:43:43 +01:00
|
|
|
-H "$${CI_REPO_URL}" \
|
|
|
|
-l "$${LICENSE}" \
|
|
|
|
-n "$${CI_REPO_NAME}-$${CI_COMMIT_TAG}" \
|
|
|
|
-m "$${CI_COMMIT_AUTHOR} <$${CI_COMMIT_AUTHOR_EMAIL}>" \
|
|
|
|
-s "$${SHORT_DESCRIPTION}" \
|
|
|
|
-c "$${CI_COMMIT_MESSAGE}" \
|
|
|
|
"$${CI_WORKSPACE}/pkg"
|
2023-11-22 20:13:22 +01:00
|
|
|
|
2023-11-23 16:43:43 +01:00
|
|
|
package-targz:
|
|
|
|
image: alpine
|
|
|
|
commands: |
|
|
|
|
tar czf $${CI_REPO_NAME}-$${CI_COMMIT_TAG}.tar.gz --directory=$${CI_WORKSPACE}/pkg .
|
2023-11-22 13:38:33 +01:00
|
|
|
|
|
|
|
publish:
|
|
|
|
image: woodpeckerci/plugin-gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://git.snaile.de
|
|
|
|
files:
|
2023-11-24 17:17:15 +01:00
|
|
|
- "$${CI_REPO_NAME}-$${CI_COMMIT_TAG}.tar.gz"
|
2023-11-22 13:38:33 +01:00
|
|
|
api_key:
|
2023-11-23 16:43:43 +01:00
|
|
|
from_secret: gitea_release
|
2023-11-22 13:38:33 +01:00
|
|
|
target: main
|
2023-11-23 16:43:43 +01:00
|
|
|
|
|
|
|
publish-xbps:
|
|
|
|
image: alpine
|
2023-11-23 23:14:53 +01:00
|
|
|
environment:
|
|
|
|
- XBPS_TARGET_ARCH="x86_64"
|
2023-11-23 16:43:43 +01:00
|
|
|
secrets:
|
|
|
|
- source: xbps_pem_passphrase
|
|
|
|
target: XBPS_PASSPHRASE
|
|
|
|
volumes:
|
|
|
|
- /srv/xbps:/target
|
|
|
|
- /etc/woodpecker/:/etc/woodpecker:ro
|
|
|
|
commands: |
|
2023-11-23 23:14:53 +01:00
|
|
|
export XBPS_TARGET_ARCH
|
2023-11-23 16:43:43 +01:00
|
|
|
tar xvf xbps-static-latest.x86_64-musl.tar.xz -C /
|
|
|
|
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
|