From 64fdecbcf47c2a2792b513ba72ea28428e1475a3 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 15 Dec 2025 21:57:22 +0100 Subject: [PATCH] move to codeberg --- .woodpecker/build.yaml | 39 +++++++++++++++++++++++++++++++++++++++ README.md | 6 +++--- src/jaildk.sh | 2 +- 3 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 .woodpecker/build.yaml diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml new file mode 100644 index 0000000..b9af3e3 --- /dev/null +++ b/.woodpecker/build.yaml @@ -0,0 +1,39 @@ +labels: + platform: linux/amd64 + +steps: + test: + when: + event: [push] + image: aygpdr/freebsd:4.3-RELEASE + commands: + - freebsd-version + - sysctl hw.model + - sysctl hw.ncpu + - sysctl hw.physmem + - sysctl hw.usermem + - ls -la + - ifconfig em0 172.16.0.1/32 alias + - ifconfig -a + - set -x -e + - sysrc jail_enable="YES" + - cp .github/assets/jail.conf /etc/ + + - cp src/jaildk.sh jaildk + - sh jaildk setup /jail + + - fetch https://download.freebsd.org/ftp/releases/amd64/amd64/14.1-RELEASE/base.txz -o /jail/base/14.1-RELEASE-base.txz + - mkdir -p /jail/base/14.1-RELEASE + - tar -xf /jail/base/14.1-RELEASE-base.txz -C /jail/base/14.1-RELEASE --unlink + + - /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 + + - /jail/bin/jaildk start test + - /jail/bin/jaildk status | grep -E "test|Jail" + diff --git a/README.md b/README.md index 005788f..e8e45ae 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Actions](https://github.com/tlinden/jaildk/actions/workflows/ci.yaml/badge.svg)](https://github.com/tlinden/jaildk/actions) +[![Actions](https://codeberg.org/scip/jaildk/actions/workflows/ci.yaml/badge.svg)](https://codeberg.org/scip/jaildk/actions) ## jaildk - a FreeBSD jail development kit v2.0.4 @@ -656,7 +656,7 @@ that's the best way for me to forget to do something. In order to report a bug, unexpected behavior, feature requests or to submit a patch, please open an issue on github: -https://github.com/TLINDEN/jaildk/issues. +https://codeberg.org/scip/jaildk/issues. ## Copyright and license @@ -670,5 +670,5 @@ F.Sass (Culsu) ## Project homepage -https://github.com/TLINDEN/jaildk +https://codeberg.org/scip/jaildk diff --git a/src/jaildk.sh b/src/jaildk.sh index 16d3ac0..4eb2cd9 100755 --- a/src/jaildk.sh +++ b/src/jaildk.sh @@ -1781,7 +1781,7 @@ jaildk_update() { rcscript=update force='' - repo="https://github.com/TLINDEN/jaildk.git" + repo="https://codeberg.org/scip/jaildk.git" mustberoot OPTIND=1; while getopts "f" arg; do