mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-04 20:32:19 +08:00
Install oathtool in container via _setup function
This commit is contained in:
6
.github/workflows/DNS.yml
vendored
6
.github/workflows/DNS.yml
vendored
@@ -69,11 +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: Install oathtool in test container
|
- name: Patch acmetest to install oathtool in container
|
||||||
run: |
|
run: |
|
||||||
cd ../acmetest
|
cd ../acmetest
|
||||||
# Modify letest.sh to install oathtool at runtime
|
# Add oathtool installation before the test runs inside container
|
||||||
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 '/^_setup() {$/a \ if command -v apt-get >/dev/null 2>&1; then\n apt-get update -qq && apt-get install -y -qq oathtool >/dev/null 2>&1 || true\n fi' letest.sh
|
||||||
- name: Set env file
|
- name: Set env file
|
||||||
run: |
|
run: |
|
||||||
cd ../acmetest
|
cd ../acmetest
|
||||||
|
|||||||
Reference in New Issue
Block a user