use new builder container in CI

This commit is contained in:
Luca Bilke 2024-02-10 18:27:53 +01:00
parent 151a4a71ef
commit 802e3055d1
No known key found for this signature in database
GPG Key ID: AD6630D0A1E650AC
1 changed files with 14 additions and 17 deletions

View File

@ -4,16 +4,13 @@ when:
steps:
build:
image: ghcr.io/void-linux/void-glibc
environment:
- DEPENDENCIES=bash findutils base-devel libX11-devel libXft-devel libXinerama-devel pango-devel
commands: |
xbps-install -Syu xbps $${DEPENDENCIES}
cp -f config.mk patches.h dwm-flexipatch/
bash flexipatch-finalizer/flexipatch-finalizer.sh -r -d dwm-flexipatch -o dwm-final
cp -f config.h dwm-final/
cd dwm-final || exit 1
make clean install DESTDIR="$${CI_WORKSPACE}/pkg" PREFIX="/usr"
image: git.snaile.de/snailed/xbps-builder:latest
commands:
- cp -f config.mk patches.h dwm-flexipatch/
- bash flexipatch-finalizer/flexipatch-finalizer.sh -r -d dwm-flexipatch -o dwm-final
- cp -f config.h dwm-final/
- cd dwm-final || exit 1
- make clean install DESTDIR="$${CI_WORKSPACE}/pkg" PREFIX="/usr"
package-xbps:
image: ghcr.io/void-linux/void-musl-busybox
@ -33,8 +30,8 @@ steps:
package-targz:
image: alpine
commands: |
tar czf $${CI_REPO_NAME}-$${CI_COMMIT_TAG}.tar.gz --directory=$${CI_WORKSPACE}/pkg .
commands:
- tar czf $${CI_REPO_NAME}-$${CI_COMMIT_TAG}.tar.gz --directory=$${CI_WORKSPACE}/pkg .
publish:
image: woodpeckerci/plugin-gitea-release
@ -56,8 +53,8 @@ steps:
volumes:
- /var/www/xbps:/target
- /etc/woodpecker/:/etc/woodpecker:ro
commands: |
export XBPS_TARGET_ARCH
mv $${CI_REPO_NAME}-$${CI_COMMIT_TAG}_1.x86_64.xbps /target
xbps-rindex -a /target/$${CI_REPO_NAME}-$${CI_COMMIT_TAG}_1.x86_64.xbps
xbps-rindex -S --signedby "$${CI_COMMIT_AUTHOR} <$${CI_COMMIT_AUTHOR_EMAIL}>" --privkey /etc/woodpecker/privkey.pem /target/$${CI_REPO_NAME}-$${CI_COMMIT_TAG}_1.x86_64.xbps
commands:
- export XBPS_TARGET_ARCH
- mv $${CI_REPO_NAME}-$${CI_COMMIT_TAG}_1.x86_64.xbps /target
- xbps-rindex -a /target/$${CI_REPO_NAME}-$${CI_COMMIT_TAG}_1.x86_64.xbps
- xbps-rindex -S --signedby "$${CI_COMMIT_AUTHOR} <$${CI_COMMIT_AUTHOR_EMAIL}>" --privkey /etc/woodpecker/privkey.pem /target/$${CI_REPO_NAME}-$${CI_COMMIT_TAG}_1.x86_64.xbps