diff --git a/.forgejo/workflows/integration.yml b/.forgejo/workflows/integration.yml index 05fc2dc..1558dc2 100644 --- a/.forgejo/workflows/integration.yml +++ b/.forgejo/workflows/integration.yml @@ -11,8 +11,8 @@ jobs: strategy: matrix: info: - - version: "1.21.0-7-rc2" - image: codeberg.org/forgejo-experimental/forgejo + - version: "1.21" + image: codeberg.org/forgejo/forgejo - version: "1.20" image: codeberg.org/forgejo/forgejo steps: @@ -29,3 +29,5 @@ jobs: echo "============================ demo ===================" forgejo-test-helper.sh run_workflow testdata/demo $url root demo setup-forgejo $token + echo "============================ IPv6 ===================" + forgejo-test-helper.sh run_workflow testdata/ipv6 $url root ipv6 setup-forgejo $token diff --git a/RUNNER_VERSION b/RUNNER_VERSION index 6d260c3..b299be9 100644 --- a/RUNNER_VERSION +++ b/RUNNER_VERSION @@ -1 +1 @@ -v3.2.0 +v3.3.0 diff --git a/action.yml b/action.yml index 99782a5..2b7df44 100644 --- a/action.yml +++ b/action.yml @@ -46,7 +46,7 @@ inputs: default: 'https://code.forgejo.org/forgejo/runner' runner-version: description: 'Runner version. If it starts with @ (for instance @featurebranch), the runner will be built from source using the specified branch.' - default: 'v3.2.0' + default: 'v3.3.0' container: description: 'Name of the container running the Forgejo instance' default: 'forgejo' diff --git a/lxc-helpers-lib.sh b/lxc-helpers-lib.sh index da71f88..81b368b 100755 --- a/lxc-helpers-lib.sh +++ b/lxc-helpers-lib.sh @@ -7,6 +7,9 @@ LXC_SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" LXC_BIN=/usr/local/bin LXC_CONTAINER_CONFIG_ALL="unprivileged lxc libvirt docker k8s" LXC_CONTAINER_CONFIG_DEFAULT="lxc libvirt docker" +LXC_IPV6_PREFIX_DEFAULT="fc15" +LXC_DOCKER_PREFIX_DEFAULT="172.17" +LXC_IPV6_DOCKER_PREFIX_DEFAULT="fd00:d0ca" : ${LXC_SUDO:=} : ${LXC_CONTAINER_RELEASE:=bookworm} @@ -372,12 +375,14 @@ function lxc_apt_install_inside() { function lxc_install_lxc() { local name="$1" local prefix="$2" + local prefixv6="$3" - lxc_container_inside $name lxc_install_lxc_inside $prefix + lxc_container_inside $name lxc_install_lxc_inside $prefix $prefixv6 } function lxc_install_lxc_inside() { local prefix="$1" + local prefixv6="${2:-$LXC_IPV6_PREFIX_DEFAULT}" local packages="make git libvirt0 libpam-cgfs bridge-utils uidmap dnsmasq-base dnsmasq dnsmasq-utils qemu-user-static lxc-templates debootstrap" if test "$(lxc_release)" = bookworm ; then @@ -398,6 +403,10 @@ LXC_NETMASK="255.255.255.0" LXC_NETWORK="$prefix.0/24" LXC_DHCP_RANGE="$prefix.2,$prefix.254" LXC_DHCP_MAX="253" +LXC_IPV6_ADDR="$prefixv6::216:3eff:fe00:1" +LXC_IPV6_MASK="64" +LXC_IPV6_NETWORK="$prefixv6::/64" +LXC_IPV6_NAT="true" EOF systemctl start lxc-net fi @@ -410,5 +419,16 @@ function lxc_install_docker() { } function lxc_install_docker_inside() { + mkdir /etc/docker + cat > /etc/docker/daemon.json <