experimental pipelines

This commit is contained in:
Luca Bilke 2024-01-03 17:04:09 +01:00
parent c3f3c176c9
commit 70b0c0fa76
3 changed files with 107 additions and 0 deletions

30
.renovaterc.json Normal file
View file

@ -0,0 +1,30 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":dependencyDashboard"
],
"automerge": true,
"major": {
"dependencyDashboardApproval": true
},
"customManagers": [
{
"customType": "regex",
"matchStringsStrategy": "combination",
"fileMatch": [
"(^|/)srcpkgs/brave-bin/template$",
"(^|/)srcpkgs/tidal-hifi/template$",
"(^|/)srcpkgs/htop-vim/template$"
],
"matchStrings": [
"^pkgname=(?<depName>.*)$",
"^version=(?<currentValue>.*)$"
],
"datasourceTemplate": "github-releases"
}
],
"enabledManagers": [
"custom.regex"
]
}

56
.woodpecker/build.yml Normal file
View file

@ -0,0 +1,56 @@
platform: linux/amd64
matrix:
PACKAGE:
- brave-bin
- htop-vim
- tidal-hifi
when:
- event: push
- event: manual
skip_clone: true
steps:
setup:
image: alpine
pull: true
commands: |
apk add git tar
git clone ${CI_REPO_CLONE_URL} custom-packages /tmp/custom
git clone --depth 1 https://github.com/void-linux/void-packages/ void-packages
wget http://repo-default.voidlinux.org/static/xbps-static-latest.x86_64-musl.tar.xz
tar xf xbps-static-latest.x86_64-musl.tar.xz xbps
rm xbps-static-latest.x86_64-musl.tar.xz
echo XBPS_CHROOT_CMD=ethereal >> void-packages/etc/conf
mv /tmp/custom/srcpkgs/${PACKAGE} void-packages/srcpkgs/
build:
image: debian
pull: true
commands: |
export PATH="${CI_WORKSPACE}/xbps/usr/bin:$PATH"
void-packages/xbps-src binary-bootstrap
void-packages/xbps-src pkg ${PACKAGE}
publish-xbps:
image: ghcr.io/void-linux/void-musl-busybox
pull: true
environment:
- XBPS_TARGET_ARCH=x86_64
secrets:
- source: xbps_pem_passphrase
target: XBPS_PASSPHRASE
volumes:
- /srv/xbps:/target
- /etc/woodpecker/:/etc/woodpecker:ro
commands: |
export XBPS_TARGET_ARCH
mv void-packages/hostdir/$${PACKAGE}-*.x86_64.xbps /target
xbps-rindex -a /target/$${PACKAGE}-*.x86_64.xbps
xbps-rindex -S --signedby "$${CI_COMMIT_AUTHOR} <$${CI_COMMIT_AUTHOR_EMAIL}>" --privkey /etc/woodpecker/privkey.pem /target/$${PACKAGE}-*.x86_64.xbps

21
.woodpecker/renovate.yml Normal file
View file

@ -0,0 +1,21 @@
platform: linux/amd64
steps:
renovate:
image: renovate/renovate
pull: true
commands:
- renovate $${CI_REPO}
environment:
RENOVATE_PLATFORM: ${CI_FORGE_TYPE}
RENOVATE_ENDPOINT: ${CI_FORGE_URL}
RENOVATE_GIT_AUTHOR: "Renovate Bot <renovate@snaile.de>"
secrets:
- source: github_token
target: github_com_token
- source: gitea_renovate
target: renovate_token
when:
- event: cron
cron: renovate
- event: manual