Set up xbps repo publishing
ci/woodpecker/tag/woodpecker Pipeline was successful
Details
ci/woodpecker/tag/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
f8c27ebf0e
commit
bf82d3ce4d
|
@ -1,36 +1,59 @@
|
|||
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"
|
||||
make install DESTDIR="$${CI_WORKSPACE}/pkg" PREFIX="/usr"
|
||||
|
||||
package-void:
|
||||
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: |
|
||||
wget http://repo-default.voidlinux.org/static/xbps-static-latest.x86_64-musl.tar.xz && \
|
||||
tar xvf xbps-static-latest.x86_64-musl.tar.xz -C / && \
|
||||
rm -f xbps-static-latest.x86_64-musl.tar.xz
|
||||
xbps-create -A x86_64 \
|
||||
-H "${CI_REPO_URL}" \
|
||||
-l "{GPL-2.0}" \
|
||||
-n "dwmblocks-async-${CI_COMMIT_TAG}" \
|
||||
-m "${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>" \
|
||||
-s "Customized dwmblocks-async" \
|
||||
-c "${CI_COMMIT_MESSAGE}" \
|
||||
"$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:
|
||||
# Could also be "hello-world*" to match both
|
||||
- "pkg/usr/bin/dwmblocks"
|
||||
- "*.xbps"
|
||||
- "${CI_REPO_NAME}-$${CI_COMMIT_TAG}.tar.gz"
|
||||
api_key:
|
||||
from_secret: gitea-release
|
||||
from_secret: gitea_release
|
||||
target: main
|
||||
|
||||
publish-xbps:
|
||||
image: alpine
|
||||
secrets:
|
||||
- source: xbps_pem_passphrase
|
||||
target: XBPS_PASSPHRASE
|
||||
volumes:
|
||||
- /srv/xbps:/target
|
||||
- /etc/woodpecker/:/etc/woodpecker:ro
|
||||
commands: |
|
||||
export XBPS_TARGET_ARCH="x86_64"
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue