acme.sh/.github/workflows/LetsEncrypt.yml

216 lines
6.4 KiB
YAML
Raw Normal View History

2020-08-27 22:17:10 +08:00
name: LetsEncrypt
on:
push:
branches:
- '*'
2020-08-29 13:14:28 +08:00
paths:
2021-06-20 16:57:58 +08:00
- '*.sh'
2020-08-29 23:23:07 +08:00
- '**.yml'
2021-06-20 16:57:58 +08:00
pull_request:
branches:
- dev
2020-08-29 13:14:28 +08:00
paths:
2021-06-20 16:57:58 +08:00
- '*.sh'
2020-09-01 21:39:44 +08:00
- '**.yml'
2020-08-29 13:14:28 +08:00
2020-08-27 22:17:10 +08:00
jobs:
Ubuntu:
2021-06-13 15:00:30 +08:00
strategy:
matrix:
2021-06-13 15:45:33 +08:00
include:
- TEST_ACME_Server: ""
CA_ECDSA: ""
CA: ""
2021-06-13 15:52:38 +08:00
CA_EMAIL: ""
2021-06-13 15:45:33 +08:00
- TEST_ACME_Server: "https://acme.zerossl.com/v2/DV90"
CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
CA: "ZeroSSL RSA Domain Secure Site CA"
2021-06-13 15:52:38 +08:00
CA_EMAIL: "githubtest@acme.sh"
2020-08-27 22:17:10 +08:00
runs-on: ubuntu-latest
env:
2020-08-28 09:32:38 +08:00
TEST_LOCAL: 1
2021-06-13 15:45:33 +08:00
ACME_DIRECTORY: ${{ matrix.TEST_ACME_Server }}
2021-06-13 15:52:38 +08:00
CA_ECDSA: ${{ matrix.CA_ECDSA }}
CA: ${{ matrix.CA }}
CA_EMAIL: ${{ matrix.CA_EMAIL }}
2020-08-27 22:17:10 +08:00
steps:
- uses: actions/checkout@v2
- name: Install tools
run: sudo apt-get install -y socat
- name: Clone acmetest
2021-06-13 15:00:30 +08:00
run: |
cd .. \
&& git clone https://github.com/acmesh-official/acmetest.git \
&& cp -r acme.sh acmetest/
2020-08-27 22:17:10 +08:00
- name: Run acmetest
2021-06-13 15:00:30 +08:00
run: |
cd ../acmetest \
&& sudo --preserve-env ./letest.sh
2020-08-27 22:17:10 +08:00
MacOS:
2021-06-13 15:00:30 +08:00
strategy:
matrix:
2021-06-13 15:45:33 +08:00
include:
- TEST_ACME_Server: ""
CA_ECDSA: ""
CA: ""
2021-06-13 15:52:38 +08:00
CA_EMAIL: ""
2021-06-13 15:45:33 +08:00
- TEST_ACME_Server: "https://acme.zerossl.com/v2/DV90"
CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
CA: "ZeroSSL RSA Domain Secure Site CA"
2021-06-13 15:52:38 +08:00
CA_EMAIL: "githubtest@acme.sh"
2020-08-27 22:17:10 +08:00
runs-on: macos-latest
env:
2020-08-28 09:32:38 +08:00
TEST_LOCAL: 1
2021-06-13 15:45:33 +08:00
ACME_DIRECTORY: ${{ matrix.TEST_ACME_Server }}
2021-06-13 15:52:38 +08:00
CA_ECDSA: ${{ matrix.CA_ECDSA }}
CA: ${{ matrix.CA }}
CA_EMAIL: ${{ matrix.CA_EMAIL }}
2020-08-27 22:17:10 +08:00
steps:
- uses: actions/checkout@v2
- name: Install tools
2020-10-21 15:00:33 +08:00
run: brew install socat
2020-08-27 22:17:10 +08:00
- name: Clone acmetest
2021-06-13 15:00:30 +08:00
run: |
cd .. \
&& git clone https://github.com/acmesh-official/acmetest.git \
&& cp -r acme.sh acmetest/
2020-08-27 22:17:10 +08:00
- name: Run acmetest
2021-06-13 15:00:30 +08:00
run: |
cd ../acmetest \
&& sudo --preserve-env ./letest.sh
2020-08-28 23:18:05 +08:00
Windows:
2021-06-13 15:00:30 +08:00
strategy:
matrix:
2021-06-13 15:45:33 +08:00
include:
- TEST_ACME_Server: ""
CA_ECDSA: ""
CA: ""
2021-06-13 15:52:38 +08:00
CA_EMAIL: ""
2021-06-13 15:45:33 +08:00
- TEST_ACME_Server: "https://acme.zerossl.com/v2/DV90"
CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
CA: "ZeroSSL RSA Domain Secure Site CA"
2021-06-13 15:52:38 +08:00
CA_EMAIL: "githubtest@acme.sh"
2020-08-28 23:18:05 +08:00
runs-on: windows-latest
env:
2021-06-13 15:45:33 +08:00
ACME_DIRECTORY: ${{ matrix.TEST_ACME_Server }}
2021-06-13 15:52:38 +08:00
CA_ECDSA: ${{ matrix.CA_ECDSA }}
CA: ${{ matrix.CA }}
CA_EMAIL: ${{ matrix.CA_EMAIL }}
2020-08-28 23:18:05 +08:00
TEST_LOCAL: 1
2021-05-23 23:16:04 +08:00
#The 80 port is used by Windows server, we have to use a custom port, tunnel will also use this port.
Le_HTTPPort: 8888
2020-08-28 23:18:05 +08:00
steps:
2020-09-01 21:30:56 +08:00
- name: Set git to use LF
2020-09-01 21:34:44 +08:00
run: |
2020-09-01 21:30:56 +08:00
git config --global core.autocrlf false
2020-08-28 23:18:05 +08:00
- uses: actions/checkout@v2
- name: Install cygwin base packages with chocolatey
run: |
choco config get cacheLocation
2020-08-28 23:31:18 +08:00
choco install --no-progress cygwin
2020-08-28 23:18:05 +08:00
shell: cmd
- name: Install cygwin additional packages
run: |
2020-08-28 23:31:18 +08:00
C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P socat,curl,cron,unzip,git
2020-08-28 23:18:05 +08:00
shell: cmd
- name: Set ENV
2020-11-18 23:16:36 +08:00
shell: cmd
2020-08-28 23:18:05 +08:00
run: |
2020-11-18 23:16:36 +08:00
echo PATH=C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin >> %GITHUB_ENV%
2020-11-18 22:23:36 +08:00
- name: Check ENV
2020-11-18 23:16:36 +08:00
shell: cmd
2020-11-18 22:23:36 +08:00
run: |
2020-11-18 23:16:36 +08:00
echo "PATH=%PATH%"
2020-08-28 23:18:05 +08:00
- name: Clone acmetest
shell: cmd
2020-09-01 21:30:56 +08:00
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
2020-08-28 23:18:05 +08:00
- name: Run acmetest
shell: cmd
2021-06-13 15:45:33 +08:00
run: cd ../acmetest && bash.exe -c ./letest.sh
2020-08-28 23:18:05 +08:00
2020-09-24 21:37:51 +08:00
FreeBSD:
2021-06-13 15:00:30 +08:00
strategy:
matrix:
2021-06-13 15:45:33 +08:00
include:
- TEST_ACME_Server: ""
CA_ECDSA: ""
CA: ""
2021-06-13 15:52:38 +08:00
CA_EMAIL: ""
2021-06-13 15:45:33 +08:00
- TEST_ACME_Server: "https://acme.zerossl.com/v2/DV90"
CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
CA: "ZeroSSL RSA Domain Secure Site CA"
2021-06-13 15:52:38 +08:00
CA_EMAIL: "githubtest@acme.sh"
2020-09-24 21:37:51 +08:00
runs-on: macos-latest
env:
TEST_LOCAL: 1
2021-06-13 15:45:33 +08:00
ACME_DIRECTORY: ${{ matrix.TEST_ACME_Server }}
2021-06-13 15:52:38 +08:00
CA_ECDSA: ${{ matrix.CA_ECDSA }}
CA: ${{ matrix.CA }}
CA_EMAIL: ${{ matrix.CA_EMAIL }}
2020-09-24 21:37:51 +08:00
steps:
- uses: actions/checkout@v2
2021-05-29 15:17:11 +08:00
- uses: vmactions/cf-tunnel@v0.0.2
2021-05-23 23:12:46 +08:00
id: tunnel
with:
protocol: http
port: 8080
- name: Set envs
run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
2020-09-24 21:37:51 +08:00
- name: Clone acmetest
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
2021-05-02 22:20:04 +08:00
- uses: vmactions/freebsd-vm@v0.1.4
2020-09-24 21:37:51 +08:00
with:
2021-06-13 15:52:38 +08:00
envs: 'TEST_LOCAL TestingDomain ACME_DIRECTORY CA_ECDSA CA CA_EMAIL'
2021-05-23 23:12:46 +08:00
nat: |
"8080": "80"
2020-09-24 22:18:38 +08:00
prepare: pkg install -y socat curl
2020-10-09 22:33:21 +08:00
usesh: true
2020-09-24 21:37:51 +08:00
run: |
2021-06-13 15:00:30 +08:00
cd ../acmetest \
&& ./letest.sh
2020-08-28 23:18:05 +08:00
Solaris:
2021-06-13 15:00:30 +08:00
strategy:
matrix:
2021-06-13 15:45:33 +08:00
include:
- TEST_ACME_Server: ""
CA_ECDSA: ""
CA: ""
2021-06-13 15:52:38 +08:00
CA_EMAIL: ""
2021-06-13 15:45:33 +08:00
- TEST_ACME_Server: "https://acme.zerossl.com/v2/DV90"
CA_ECDSA: "ZeroSSL ECC Domain Secure Site CA"
CA: "ZeroSSL RSA Domain Secure Site CA"
2021-06-13 15:52:38 +08:00
CA_EMAIL: "githubtest@acme.sh"
runs-on: macos-latest
env:
TEST_LOCAL: 1
2021-06-13 15:45:33 +08:00
ACME_DIRECTORY: ${{ matrix.TEST_ACME_Server }}
2021-06-13 15:52:38 +08:00
CA_ECDSA: ${{ matrix.CA_ECDSA }}
CA: ${{ matrix.CA }}
CA_EMAIL: ${{ matrix.CA_EMAIL }}
steps:
- uses: actions/checkout@v2
2021-05-29 15:17:11 +08:00
- uses: vmactions/cf-tunnel@v0.0.2
2021-05-23 23:12:46 +08:00
id: tunnel
with:
protocol: http
port: 8080
- name: Set envs
2021-05-23 23:12:46 +08:00
run: echo "TestingDomain=${{steps.tunnel.outputs.server}}" >> $GITHUB_ENV
- name: Clone acmetest
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/
2021-02-13 17:27:22 +08:00
- uses: vmactions/solaris-vm@v0.0.3
with:
2021-06-13 15:52:38 +08:00
envs: 'TEST_LOCAL TestingDomain ACME_DIRECTORY CA_ECDSA CA CA_EMAIL'
nat: |
"8080": "80"
prepare: pkgutil -y -i socat curl
run: |
2021-06-13 15:00:30 +08:00
cd ../acmetest \
&& ./letest.sh