Set up xbps repo
This commit is contained in:
parent
f8c27ebf0e
commit
533c36b512
|
@ -7,12 +7,11 @@ steps:
|
|||
apk add --no-cache build-base gcc xcb-util-dev pkgconfig >/dev/null
|
||||
make install DESTDIR="$CI_WORKSPACE/pkg" PREFIX="/usr"
|
||||
|
||||
package-void:
|
||||
package-xbps:
|
||||
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
|
||||
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 /
|
||||
xbps-create -A x86_64 \
|
||||
-H "${CI_REPO_URL}" \
|
||||
-l "{GPL-2.0}" \
|
||||
|
@ -22,7 +21,6 @@ steps:
|
|||
-c "${CI_COMMIT_MESSAGE}" \
|
||||
"$CI_WORKSPACE/pkg"
|
||||
|
||||
|
||||
publish:
|
||||
image: woodpeckerci/plugin-gitea-release
|
||||
settings:
|
||||
|
@ -32,5 +30,18 @@ steps:
|
|||
- "pkg/usr/bin/dwmblocks"
|
||||
- "*.xbps"
|
||||
api_key:
|
||||
from_secret: gitea-release
|
||||
from_secret: GITEA_RELEASE_KEY
|
||||
target: main
|
||||
|
||||
publish-xbps:
|
||||
image: alpine
|
||||
secrets: XBPS_SIGNING_KEY
|
||||
volumes:
|
||||
- /srv/www:/srv/www
|
||||
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 /
|
||||
echo "$XBPS_SIGNING_KEY" > privkey.pem
|
||||
mv *.xbps /srv/www/
|
||||
xbps-rindex -a /srv/www/*.xbps
|
||||
xbps-rindex --sign --signedby "${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>" --privkey privkey.pem /srv/www/
|
||||
|
|
Loading…
Reference in New Issue