improve CI with new builder container
This commit is contained in:
parent
24fb56c696
commit
163cd8a6b4
1 changed files with 29 additions and 31 deletions
|
@ -4,19 +4,17 @@ when:
|
|||
|
||||
steps:
|
||||
build:
|
||||
image: ghcr.io/void-linux/void-glibc
|
||||
environment:
|
||||
- DEPENDENCIES=bash findutils ncurses base-devel libX11-devel libXft-devel harfbuzz-devel libXcursor-devel
|
||||
commands: |
|
||||
xbps-install -Syu xbps $${DEPENDENCIES}
|
||||
cp -f config.mk Makefile patches.h st-flexipatch/
|
||||
flexipatch-finalizer/flexipatch-finalizer.sh -r -d st-flexipatch -o st-final
|
||||
for patch in patches/*.diff; do
|
||||
image: git.snaile.de/snailed/xbps-builder:latest
|
||||
commands:
|
||||
- cp -f config.mk Makefile patches.h st-flexipatch/
|
||||
- flexipatch-finalizer/flexipatch-finalizer.sh -r -d st-flexipatch -o st-final
|
||||
- |
|
||||
for patch in patches/*.diff; do
|
||||
patch -d st-final <"$patch"
|
||||
done
|
||||
cp -f config.h st-final/
|
||||
cd st-final || exit 1
|
||||
make clean install DESTDIR="$${CI_WORKSPACE}/pkg" PREFIX="/usr"
|
||||
done
|
||||
- cp -f config.h st-final/
|
||||
- cd st-final || exit 1
|
||||
- make clean install DESTDIR="$${CI_WORKSPACE}/pkg" PREFIX="/usr"
|
||||
|
||||
|
||||
package-xbps:
|
||||
|
@ -35,20 +33,20 @@ steps:
|
|||
-D "$${DEPENDENCIES}" \
|
||||
"$${CI_WORKSPACE}/pkg"
|
||||
|
||||
package-targz:
|
||||
image: alpine
|
||||
commands: |
|
||||
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:
|
||||
- "${CI_REPO_NAME}-${CI_COMMIT_TAG}.tar.gz"
|
||||
api_key:
|
||||
from_secret: gitea_release
|
||||
target: main
|
||||
# package-targz:
|
||||
# image: alpine
|
||||
# commands: |
|
||||
# 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:
|
||||
# - "${CI_REPO_NAME}-${CI_COMMIT_TAG}.tar.gz"
|
||||
# api_key:
|
||||
# from_secret: gitea_release
|
||||
# target: main
|
||||
|
||||
publish-xbps:
|
||||
image: ghcr.io/void-linux/void-musl-busybox
|
||||
|
@ -60,8 +58,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
|
||||
|
|
Loading…
Add table
Reference in a new issue