Skip to content

Commit

Permalink
Modify testing workflow, bump unbound, alpine and adguard versions, f…
Browse files Browse the repository at this point in the history
…ix f2b on Debian 12
  • Loading branch information
notthebee committed Apr 2, 2024
1 parent 3924f07 commit 7239a9e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ jobs:
- name: Install git and expect (Debian-based)
run: ssh root@$SERVER_IPV4 apt install -y git expect wamerican



- uses: infraway/create-dns-record@v2.0
with:
type: "A"
Expand Down Expand Up @@ -429,15 +427,13 @@ jobs:

- name: Delete all Cloudflare domains
run: >-
curl -s -X GET https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/dns_records?per_page=500
-H "Authorization: Bearer $CLOUDFLARE_TOKEN"
-H "Content-Type: application/json" |
jq .result[].id |
tr -d '"' |
( while read id; do curl -s -X DELETE
https://api.cloudflare.com/client/v4/zones/5420f91fefac252d89d9495a8d35ae73/dns_records/${id}
-H "Authorization: Bearer $CLOUDFLARE_TOKEN"
-H "Content-Type: application/json"; done; )
curl --silent "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records?per_page=50000" \
--header "Authorization: Bearer $CLOUDFLARE_TOKEN" \
| jq --raw-output '.result[].id' | while read id
do
curl --silent --request DELETE "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/$id" \
--header "Authorization: Bearer $CLOUDFLARE_TOKEN"
done
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE }}
6 changes: 3 additions & 3 deletions roles/dns/templates/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

FROM alpine:3.15
FROM alpine:3.18

RUN apk add --no-cache \
libcap \
unbound=1.13.2-r2 \
unbound=1.19.3-r0 \
dnscrypt-proxy

WORKDIR /tmp
Expand All @@ -13,7 +13,7 @@ RUN wget https://www.internic.net/domain/named.root -qO- >> /etc/unbound/root.hi
COPY files/ /opt/

# AdGuardHome
RUN wget https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.107.16/AdGuardHome_linux_{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64' }}.tar.gz >/dev/null 2>&1 \
RUN wget https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.107.46/AdGuardHome_linux_{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64' }}.tar.gz >/dev/null 2>&1 \
&& mkdir -p /opt/adguardhome/conf /opt/adguardhome/work \
&& tar xf AdGuardHome_linux_{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64' }}.tar.gz ./AdGuardHome/AdGuardHome --strip-components=2 -C /opt/adguardhome \
&& /bin/ash /opt/adguardhome \
Expand Down
1 change: 1 addition & 0 deletions roles/fail2ban/templates/jail.local.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ destemail = {{ email }}
sender = {{ email }}

[sshd]
backend = systemd
enabled = true
port = {{ ssh_port }}
filter = sshd

0 comments on commit 7239a9e

Please sign in to comment.