ci: migrate from --no-dns to --type ipv4 for cmlxc compatibility

This commit is contained in:
holger krekel
2026-05-10 20:51:30 +02:00
parent a25ffafaed
commit 952be30fb9
3 changed files with 10 additions and 11 deletions

View File

@@ -18,19 +18,20 @@ concurrency:
jobs: jobs:
no-dns: no-dns:
name: LXC deploy and test name: LXC deploy and test
uses: chatmail/cmlxc/.github/workflows/lxc-test.yml@v0.13.5 uses: chatmail/cmlxc/.github/workflows/lxc-test.yml@v0.14.1
with: with:
cmlxc_version: v0.13.5
cmlxc_commands: | cmlxc_commands: |
cmlxc init cmlxc init
# single cmdeploy relay test # single cmdeploy relay test
cmlxc -v deploy-cmdeploy --source ./repo --ipv4-only --no-dns cm0 cmlxc -v deploy-cmdeploy --source ./repo --type ipv4 cm0
cmlxc -v test-cmdeploy --no-dns cm0 cmlxc -v test-cmdeploy cm0
# cross cmdeploy relay test # cross cmdeploy relay test (two ipv4 relays)
cmlxc -v deploy-cmdeploy --source ./repo cm1 cmlxc -v deploy-cmdeploy --source ./repo --ipv4-only --type ipv4 cm1
cmlxc -v test-cmdeploy --no-dns cm0 cm1 cmlxc -v test-cmdeploy cm0 cm1
# cross cmdeploy/madmail relay tests # cross cmdeploy/madmail relay tests
cmlxc -v deploy-madmail mad0 cmlxc -v deploy-madmail mad0
cmlxc -v test-cmdeploy --no-dns cm0 mad0 cmlxc -v test-cmdeploy cm0 mad0
cmlxc -v test-mini mad0 cm0
cmlxc -v test-mini cm0 mad0

View File

@@ -57,9 +57,8 @@ jobs:
lxc-test: lxc-test:
name: LXC deploy and test name: LXC deploy and test
uses: chatmail/cmlxc/.github/workflows/lxc-test.yml@v0.13.5 uses: chatmail/cmlxc/.github/workflows/lxc-test.yml@v0.14.1
with: with:
cmlxc_version: v0.13.5
cmlxc_commands: | cmlxc_commands: |
cmlxc init cmlxc init
# single cmdeploy relay test # single cmdeploy relay test

View File

@@ -200,7 +200,6 @@ def is_valid_ipv4(address: str) -> bool:
return False return False
def format_arpa_address(address: str) -> str: def format_arpa_address(address: str) -> str:
if is_valid_ipv4(address): if is_valid_ipv4(address):
return ipaddress.IPv4Address(address).reverse_pointer return ipaddress.IPv4Address(address).reverse_pointer