forked from acmesh-official/acme.sh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
neil
committed
Sep 6, 2020
1 parent
2c7d223
commit 1e4ea90
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: ZeroSSL | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
paths: | ||
- '**.sh' | ||
- '**.yml' | ||
|
||
|
||
jobs: | ||
CheckToken: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
hasToken: ${{ steps.step_one.outputs.hasToken }} | ||
env: | ||
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }} | ||
steps: | ||
- name: Set the value | ||
id: step_one | ||
run: | | ||
if [ "$NGROK_TOKEN" ] ; then | ||
echo "::set-output name=hasToken::true" | ||
else | ||
echo "::set-output name=hasToken::false" | ||
fi | ||
- name: Check the value | ||
run: echo ${{ steps.step_one.outputs.hasToken }} | ||
|
||
ZeroSSL: | ||
runs-on: ubuntu-latest | ||
needs: CheckToken | ||
if: "contains(needs.CheckToken.outputs.hasToken, 'true')" | ||
env: | ||
ACME_DIRECTORY: https://acme.zerossl.com/v2/DV90 | ||
TEST_LOCAL: 1 | ||
TEST_CA: "ZeroSSL" | ||
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install tools | ||
run: sudo apt-get install -y socat | ||
- name: Clone acmetest | ||
run: cd .. && git clone https://github.com/acmesh-official/acmetest.git && cp -r acme.sh acmetest/ | ||
- name: Run acmetest | ||
run: cd ../acmetest && ./letest.sh |