You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
name: DNS Czechia Test CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master", "dev" ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test-plugin:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Syntax check
|
|
run: bash -n dnsapi/dns_czechia.sh
|
|
|
|
- name: Run Czechia DNS Test
|
|
env:
|
|
CZ_AuthorizationToken: ${{ secrets.CZ_TOKEN }}
|
|
CZ_Zones: "zoner-test.eu"
|
|
TEST_DNS_SLEEP: 120
|
|
run: |
|
|
# 1. Instalace acme.sh
|
|
curl https://get.acme.sh | sh -s email=jindra@zoner.com
|
|
|
|
# 2. Zkopírování pluginu (všimněte si fixní cesty k home)
|
|
# Ujistíme se, že cílová složka existuje
|
|
mkdir -p /home/runner/.acme.sh/dnsapi
|
|
cp dnsapi/dns_czechia.sh /home/runner/.acme.sh/dnsapi/dns_czechia.sh
|
|
chmod +x /home/runner/.acme.sh/dnsapi/dns_czechia.sh
|
|
|
|
# 3. Spuštění s VYNUCENÝM staging serverem a správným názvem
|
|
/home/runner/.acme.sh/acme.sh --issue \
|
|
--dns dns_czechia \
|
|
-d "$CZ_Zones" \
|
|
--server https://acme-staging-v02.api.letsencrypt.org/directory \
|
|
--debug 2
|