15 Commits

Author SHA1 Message Date
84954626d4 revert test 2026-01-09 08:58:01 +01:00
c72d38fef7 perhaps like this? 2026-01-09 08:56:56 +01:00
daaaf42848 try to mix local and image tests 2026-01-09 08:53:33 +01:00
4d4d940cd7 use fixed plugin-git image 2026-01-08 14:23:47 +01:00
8f55d4861b use published git plugin image 2026-01-08 13:27:14 +01:00
dc2d310c45 use local git plugin image 2026-01-08 12:33:50 +01:00
6669932b06 run w/ linux compat 2026-01-08 10:00:25 +01:00
846c0104cc try file uri 2026-01-08 09:48:26 +01:00
1bd09b60a3 try local path 2026-01-08 09:47:51 +01:00
7d0e82773c try other git plugin image 2026-01-08 09:43:25 +01:00
41b8647c10 use ghcr.io/freebsd/freebsd-runtime:14.3 2026-01-07 21:23:12 +01:00
12f5afdf0d use runtime 2026-01-07 20:45:22 +01:00
3d646a88d6 revert 2026-01-07 12:19:29 +01:00
6da97f3d0f try ghcr 2026-01-07 12:14:35 +01:00
696f0d7514 try native agent 2026-01-07 12:10:15 +01:00

View File

@@ -11,43 +11,47 @@ matrix:
labels:
platform: freebsd/amd64
clone:
git:
image: codeberg.org/scip/jaildk:plugin-git-2
steps:
test:
image: bash
image: ghcr.io/freebsd/freebsd-runtime:14.3
when:
event: [push]
commands:
- freebsd-version
- uname -a
- sysctl hw.model
- sysctl hw.ncpu
- sysctl hw.physmem
- sysctl hw.usermem
# - sysctl hw.model
# - sysctl hw.ncpu
# - sysctl hw.physmem
# - sysctl hw.usermem
# clean up earlier runs, if any
- if jls | grep -q test; then jail -r test; fi
- mount | cut -d' ' -f3 | grep /jail | sed '1!G;h;$!d' | while read D; do umount $D; done
- chflags -R noschg /jail
- rm -rf /jail
# # clean up earlier runs, if any
# - if jls | grep -q test; then jail -r test; fi
# - mount | cut -d' ' -f3 | grep /jail | sed '1!G;h;$!d' | while read D; do umount $D; done
# - chflags -R noschg /jail
# - rm -rf /jail
- ifconfig vtnet0 172.16.0.1/32 alias
- ifconfig vtnet0
# - ifconfig vtnet0 172.16.0.1/32 alias
# - ifconfig vtnet0
- sysrc jail_enable="YES"
- cp .woodpecker/assets/jail.conf /etc/
# - sysrc jail_enable="YES"
# - cp .woodpecker/assets/jail.conf /etc/
- cp src/jaildk.sh jaildk
- sh jaildk setup /jail
# - cp src/jaildk.sh jaildk
# - sh jaildk setup /jail
- if ! test -e /jail/base/${release}-base.txz; then fetch https://download.freebsd.org/ftp/releases/amd64/amd64/${releaselink}/base.txz -o /jail/base/${release}-base.txz; mkdir -p /jail/base/${release}; tar -xf /jail/base/${release}-base.txz -C /jail/base/${release} --unlink; fi
# - if ! test -e /jail/base/${release}-base.txz; then fetch https://download.freebsd.org/ftp/releases/amd64/amd64/${releaselink}/base.txz -o /jail/base/${release}-base.txz; mkdir -p /jail/base/${release}; tar -xf /jail/base/${release}-base.txz -C /jail/base/${release} --unlink; fi
- /jail/bin/jaildk create test
- ls -l /jail/etc/test
- /jail/bin/jaildk build test -m start
- df -h /jail/build/test/etc
# - /jail/bin/jaildk create test
# - ls -l /jail/etc/test
# - /jail/bin/jaildk build test -m start
# - df -h /jail/build/test/etc
- echo 'sshd_enable="Yes"' > /jail/build/test/usr/local/etc/rc.conf
- chroot /jail/build/test /etc/rc.d/sshd keygen
# - echo 'sshd_enable="Yes"' > /jail/build/test/usr/local/etc/rc.conf
# - chroot /jail/build/test /etc/rc.d/sshd keygen
- /jail/bin/jaildk start test
- /jail/bin/jaildk status | grep -E "test|Jail"
# - /jail/bin/jaildk start test
# - /jail/bin/jaildk status | grep -E "test|Jail"