new caching concept
ci/woodpecker/manual/2-build/1 Pipeline failed
Details
ci/woodpecker/manual/1-renovate Pipeline was successful
Details
ci/woodpecker/manual/2-build/2 Pipeline failed
Details
ci/woodpecker/manual/2-build/3 Pipeline failed
Details
ci/woodpecker/manual/2-build/4 Pipeline failed
Details
ci/woodpecker/manual/2-build/5 Pipeline failed
Details
ci/woodpecker/manual/2-build/1 Pipeline failed
Details
ci/woodpecker/manual/1-renovate Pipeline was successful
Details
ci/woodpecker/manual/2-build/2 Pipeline failed
Details
ci/woodpecker/manual/2-build/3 Pipeline failed
Details
ci/woodpecker/manual/2-build/4 Pipeline failed
Details
ci/woodpecker/manual/2-build/5 Pipeline failed
Details
This commit is contained in:
parent
40e197fad4
commit
3f9ca8941b
|
@ -17,37 +17,30 @@ clone:
|
|||
settings:
|
||||
recursive: true
|
||||
submodule-update-remote: true
|
||||
use-ssh: true
|
||||
ssh-key:
|
||||
from_secret: gitea_ssh_key
|
||||
|
||||
steps:
|
||||
setup:
|
||||
image: alpine
|
||||
commands: |
|
||||
echo ${CI_PIPELINE_FILES}
|
||||
|
||||
apk add git
|
||||
|
||||
git clone --depth=1 https://github.com/void-linux/void-packages
|
||||
|
||||
cp -a srcpkgs/${PACKAGE} void-packages/srcpkgs/
|
||||
|
||||
cd void-packages
|
||||
ln -s / masterdir
|
||||
|
||||
echo XBPS_BUILD_ENVIRONMENT=void-packages-ci >> etc/conf
|
||||
echo XBPS_ALLOW_RESTRICTED=yes >> etc/conf
|
||||
echo XBPS_CHROOT_CMD=ethereal >> etc/conf
|
||||
echo XBPS_ALLOW_CHROOT_BREAKOUT=yes >> etc/conf
|
||||
|
||||
build:
|
||||
package-xbps:
|
||||
image: ghcr.io/void-linux/void-buildroot-glibc
|
||||
volumes:
|
||||
- /var/cache/void-packages:/void-packages
|
||||
commands: |
|
||||
cd void-packages
|
||||
|
||||
./xbps-src binary-bootstrap
|
||||
./xbps-src pkg ${PACKAGE} | grep "index: added" | cut -d '`' -f2 | cut -d "'" -f1 | tee ../packagename
|
||||
if [ -w /void-packages/hostdir ]; then
|
||||
if [ -x xbps-src ]; then
|
||||
git reset --hard HEAD
|
||||
git pull
|
||||
/void-packages/xbps-src bootstrap-update
|
||||
else
|
||||
git clone --depth=1 https://github.com/void-linux/void-packages /void-packages
|
||||
/void-packages/xbps-src binary-bootstrap
|
||||
fi
|
||||
else
|
||||
echo "Cannot access /void-packages/hostdir" >&2
|
||||
exit 1
|
||||
fi
|
||||
rm -rf /void-packages/srcpkgs/${PACKAGE} 2>/dev/null || true
|
||||
cp -a srcpkgs/${PACKAGE} void-packages/srcpkgs/
|
||||
/void-packages/xbps-src binary-bootstrap
|
||||
/void-packages/xbps-src pkg ${PACKAGE} | grep "index: added" | cut -d '`' -f2 | cut -d "'" -f1 | tee ../packagename
|
||||
|
||||
publish-xbps:
|
||||
image: ghcr.io/void-linux/void-musl-busybox
|
||||
|
@ -58,12 +51,13 @@ steps:
|
|||
target: XBPS_PASSPHRASE
|
||||
volumes:
|
||||
- /var/www/xbps:/target
|
||||
- /var/cache/void-packages:/void-packages
|
||||
- /etc/woodpecker/:/etc/woodpecker:ro
|
||||
commands: |
|
||||
export XBPS_TARGET_ARCH
|
||||
packagename="$(cat packagename)"
|
||||
|
||||
mv void-packages/hostdir/binpkgs/$${packagename}.x86_64.xbps /target
|
||||
mv /void-packages/hostdir/binpkgs/$${packagename}.x86_64.xbps /target
|
||||
|
||||
xbps-rindex -a /target/$${packagename}.x86_64.xbps
|
||||
xbps-rindex -S --signedby "$${CI_COMMIT_AUTHOR} <$${CI_COMMIT_AUTHOR_EMAIL}>" --privkey /etc/woodpecker/privkey.pem /target/$${packagename}.x86_64.xbps
|
||||
|
|
Loading…
Reference in New Issue