Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dnscontrol to v4.7.3 #115

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.17.2@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a
FROM alpine:3.18.5@sha256:d695c3de6fcd8cfe3a6222b0358425d40adfd129a8a47c3416faff1a8aece389

LABEL repository="https://github.com/koenrh/dnscontrol-action"
LABEL maintainer="Koen Rouwhorst <[email protected]>"
Expand All @@ -8,18 +8,26 @@ LABEL "com.github.actions.description"="Deploy your DNS configuration to multipl
LABEL "com.github.actions.icon"="cloud"
LABEL "com.github.actions.color"="yellow"

ENV DNSCONTROL_VERSION="3.31.4"
ENV DNSCONTROL_CHECKSUM="054d236531df2674c9286279596f88f02c1cf7b1448dc5f643f1a1dbe705fe8d"
ENV DNSCONTROL_VERSION="4.7.3"
ENV DNSCONTROL_CHECKSUM="f7825923bcc66e6758c9231ac42122322684cfa78aad2ae17ec4e772cd22c911"
ENV USER=dnscontrol-user

RUN apk -U --no-cache upgrade && \
apk add --no-cache bash ca-certificates curl libc6-compat
apk add --no-cache bash ca-certificates curl libc6-compat tar

RUN curl -sL "https://github.com/StackExchange/dnscontrol/releases/download/v$DNSCONTROL_VERSION/dnscontrol-Linux" \
-o dnscontrol && \
echo "$DNSCONTROL_CHECKSUM dnscontrol" | sha256sum -c - && \
chmod +x dnscontrol && \
mv dnscontrol /usr/local/bin/dnscontrol
RUN addgroup -S dnscontrol-user && adduser -S dnscontrol-user -G dnscontrol-user --disabled-password

RUN curl -sL "https://github.com/StackExchange/dnscontrol/releases/download/v${DNSCONTROL_VERSION}/dnscontrol_${DNSCONTROL_VERSION}_linux_amd64.tar.gz" \
-o dnscontrol && \
echo "$DNSCONTROL_CHECKSUM dnscontrol" | sha256sum -c - && \
tar xvf dnscontrol

RUN chown dnscontrol-user:dnscontrol-user dnscontrol

RUN chmod +x dnscontrol && \
chmod 755 dnscontrol && \
cp dnscontrol /usr/local/bin/dnscontrol

RUN ["dnscontrol", "version"]

COPY README.md entrypoint.sh bin/filter-preview-output.sh /
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v2

- name: DNSControl check
uses: koenrh/dnscontrol-action@v3
uses: koenrh/dnscontrol-action@v4.7.3
with:
args: check

Expand All @@ -54,7 +54,7 @@ jobs:
- uses: actions/checkout@v3

- name: DNSControl preview
uses: koenrh/dnscontrol-action@v3
uses: koenrh/dnscontrol-action@v4.7.3
id: dnscontrol_preview
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
- uses: actions/checkout@v3

- name: DNSControl push
uses: koenrh/dnscontrol-action@v3
uses: koenrh/dnscontrol-action@v4.7.3
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
with:
Expand Down