dwm-custom/.woodpecker.yml

71 lines
2.2 KiB
YAML
Raw Normal View History

2024-01-31 01:17:44 +01:00
when:
- event: tag
- event: manual
steps:
build:
image: gcc
commands: |
apt-get update
apt-get install -y \
libx11-dev libx11-xcb-dev libxcb1-dev \
libxcb-res0-dev libxft-dev libxinerama-dev \
2024-02-03 18:03:17 +01:00
libfreetype6-dev libfontconfig1-dev \
libpango1.0-dev
2024-02-03 18:00:23 +01:00
cp -f config.mk patches.h dwm-flexipatch/
2024-01-31 01:17:44 +01:00
flexipatch-finalizer/flexipatch-finalizer.sh -r -d dwm-flexipatch -o dwm-final
# for patch in patches/*.diff; do
# patch -d dwm-final <"$patch"
# done
2024-01-31 01:17:44 +01:00
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
environment:
- LICENSE=GPL-2.0
- SHORT_DESCRIPTION=Customized dwm
2024-02-04 15:03:04 +01:00
- DEPENDENCIES=pango>=1.44
2024-01-31 01:17:44 +01:00
commands: |
xbps-create -A x86_64 \
-H "$${CI_REPO_URL}" \
-l "$${LICENSE}" \
-n "$${CI_REPO_NAME}-$${CI_COMMIT_TAG}_1" \
-m "$${CI_COMMIT_AUTHOR} <$${CI_COMMIT_AUTHOR_EMAIL}>" \
-s "$${SHORT_DESCRIPTION}" \
2024-02-04 14:59:39 +01:00
-D "$${DEPENDENCIES}" \
2024-01-31 01:17:44 +01:00
"$${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
publish-xbps:
image: ghcr.io/void-linux/void-musl-busybox
environment:
- XBPS_TARGET_ARCH=x86_64
secrets:
- source: xbps_pem_passphrase
target: XBPS_PASSPHRASE
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