when: event: tag steps: prep: image: alpine commands: | wget http://repo-default.voidlinux.org/static/xbps-static-latest.x86_64-musl.tar.xz build: image: alpine commands: | apk add --no-cache build-base gcc xcb-util-dev pkgconfig >/dev/null make install DESTDIR="$${CI_WORKSPACE}/pkg" PREFIX="/usr" package-xbps: image: alpine environment: - LICENSE="GPL-2.0" - SHORT_DESCRIPTION="Customized dwmblocks-async" commands: | tar xvf xbps-static-latest.x86_64-musl.tar.xz -C / xbps-create -A x86_64 \ -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" package-targz: image: alpine commands: | tar czf $${CI_REPO_NAME}.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" api_key: from_secret: GITEA_RELEASE_KEY target: main publish-xbps: image: alpine secrets: - source: XBPS_SIGNING_KEYPHRASE target: XBPS_PASSPHRASE volumes: - /srv/www:/target - /etc/woodpecker.pem:/etc/privatekey.pem:ro commands: | 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