cleanup
ci/woodpecker/tag/woodpecker Pipeline was successful Details

This commit is contained in:
Luca Bilke 2024-02-10 16:08:19 +01:00
parent 22ca6a807e
commit 9e4473a097
No known key found for this signature in database
GPG Key ID: AD6630D0A1E650AC
1 changed files with 23 additions and 23 deletions

View File

@ -1,16 +1,15 @@
when: when:
- event: tag - event: tag
- event: manual
steps: steps:
build: build:
image: git.snaile.de/snailed/xbps-builder:latest image: git.snaile.de/snailed/xbps-builder:latest
commands: | commands:
cp -f config.mk patches.h dmenu-flexipatch/ - cp -f config.mk patches.h dmenu-flexipatch/
bash flexipatch-finalizer/flexipatch-finalizer.sh -r -d dmenu-flexipatch -o dmenu-final - bash flexipatch-finalizer/flexipatch-finalizer.sh -r -d dmenu-flexipatch -o dmenu-final
cp -f config.h dmenu-final/ - cp -f config.h dmenu-final/
cd dmenu-final || exit 1 - cd dmenu-final || exit 1
make clean install DESTDIR="$${CI_WORKSPACE}/pkg" PREFIX="/usr" - make clean install DESTDIR="$${CI_WORKSPACE}/pkg" PREFIX="/usr"
package-xbps: package-xbps:
image: ghcr.io/void-linux/void-musl-busybox image: ghcr.io/void-linux/void-musl-busybox
@ -18,20 +17,21 @@ steps:
- LICENSE=GPL-2.0 - LICENSE=GPL-2.0
- SHORT_DESCRIPTION=Customized dwm - SHORT_DESCRIPTION=Customized dwm
- DEPENDENCIES=pango>=1.44,glibc>=2.32,libX11>=1.2,libXft>=2.3.8,libXinerama>=1.0.3,fontconfig>=2.6.0 - DEPENDENCIES=pango>=1.44,glibc>=2.32,libX11>=1.2,libXft>=2.3.8,libXinerama>=1.0.3,fontconfig>=2.6.0
commands: | commands:
xbps-create -A x86_64 \ - |
-H "$${CI_REPO_URL}" \ xbps-create -A x86_64 \
-l "$${LICENSE}" \ -H "$${CI_REPO_URL}" \
-n "$${CI_REPO_NAME}-$${CI_COMMIT_TAG}_1" \ -l "$${LICENSE}" \
-m "$${CI_COMMIT_AUTHOR} <$${CI_COMMIT_AUTHOR_EMAIL}>" \ -n "$${CI_REPO_NAME}-$${CI_COMMIT_TAG}_1" \
-s "$${SHORT_DESCRIPTION}" \ -m "$${CI_COMMIT_AUTHOR} <$${CI_COMMIT_AUTHOR_EMAIL}>" \
-D "$${DEPENDENCIES}" \ -s "$${SHORT_DESCRIPTION}" \
"$${CI_WORKSPACE}/pkg" -D "$${DEPENDENCIES}" \
"$${CI_WORKSPACE}/pkg"
package-targz: package-targz:
image: alpine image: alpine
commands: | commands:
tar czf $${CI_REPO_NAME}-$${CI_COMMIT_TAG}.tar.gz --directory=$${CI_WORKSPACE}/pkg . - tar czf $${CI_REPO_NAME}-$${CI_COMMIT_TAG}.tar.gz --directory=$${CI_WORKSPACE}/pkg .
publish: publish:
image: woodpeckerci/plugin-gitea-release image: woodpeckerci/plugin-gitea-release
@ -53,8 +53,8 @@ steps:
volumes: volumes:
- /var/www/xbps:/target - /var/www/xbps:/target
- /etc/woodpecker/:/etc/woodpecker:ro - /etc/woodpecker/:/etc/woodpecker:ro
commands: | commands:
export XBPS_TARGET_ARCH - export XBPS_TARGET_ARCH
mv $${CI_REPO_NAME}-$${CI_COMMIT_TAG}_1.x86_64.xbps /target - 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 -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 - 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