Fix: Install oathtool at runtime in test container

This commit is contained in:
Robert Rettig
2025-12-19 18:20:56 +01:00
parent 0e5aab346f
commit e92d0a7492

View File

@@ -69,13 +69,11 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Clone acmetest - name: Clone acmetest
run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/ run: cd .. && git clone --depth=1 https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
- name: Ensure oathtool in test container - name: Install oathtool in test container
run: | run: |
cd ../acmetest cd ../acmetest
# Add oathtool installation to acmetest Dockerfile if it exists # Modify letest.sh to install oathtool at runtime
if [ -f Dockerfile ]; then sed -i '/TEST_LOCAL skip setup/a apt-get update -qq && apt-get install -y -qq oathtool > /dev/null 2>&1 || true' letest.sh
sed -i 's/tzdata/tzdata oath-toolkit-oathtool/g' Dockerfile
fi
- name: Set env file - name: Set env file
run: | run: |
cd ../acmetest cd ../acmetest