Skip to content

Commit aaf6506

Browse files
Merge pull request #2 from dan-is-not-the-man/dan-is-not-the-man-patch-1-dockerfile
Test
2 parents 58d7e41 + 83edd49 commit aaf6506

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

Dockerfile

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
1-
FROM alpine:3.17.2@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a
1+
FROM alpine:3.18.5@sha256:d695c3de6fcd8cfe3a6222b0358425d40adfd129a8a47c3416faff1a8aece389
22

3-
LABEL repository="https://github.com/koenrh/dnscontrol-action"
4-
LABEL maintainer="Koen Rouwhorst <[email protected]>"
3+
LABEL repository="https://github.com/dan-is-not-the-man/dnscontrol-action"
4+
LABEL maintainer="dan <[email protected]>"
55

66
LABEL "com.github.actions.name"="DNSControl"
77
LABEL "com.github.actions.description"="Deploy your DNS configuration to multiple providers."
8-
LABEL "com.github.actions.icon"="cloud"
9-
LABEL "com.github.actions.color"="yellow"
8+
LABEL "com.github.actions.icon"="globe"
9+
LABEL "com.github.actions.color"="blue"
1010

11-
ENV DNSCONTROL_VERSION="3.31.4"
12-
ENV DNSCONTROL_CHECKSUM="054d236531df2674c9286279596f88f02c1cf7b1448dc5f643f1a1dbe705fe8d"
11+
ENV DNSCONTROL_VERSION="4.7.3"
12+
ENV DNSCONTROL_CHECKSUM="f7825923bcc66e6758c9231ac42122322684cfa78aad2ae17ec4e772cd22c911"
13+
ENV USER=dnscontrol-user
1314

1415
RUN apk -U --no-cache upgrade && \
15-
apk add --no-cache bash ca-certificates curl libc6-compat
16+
apk add --no-cache bash ca-certificates curl libc6-compat tar
1617

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

20+
RUN curl -sL "https://github.com/StackExchange/dnscontrol/releases/download/v${DNSCONTROL_VERSION}/dnscontrol_${DNSCONTROL_VERSION}_linux_amd64.tar.gz" \
21+
-o dnscontrol && \
22+
echo "$DNSCONTROL_CHECKSUM dnscontrol" | sha256sum -c - && \
23+
tar xvf dnscontrol
24+
25+
RUN chown dnscontrol-user:dnscontrol-user dnscontrol
26+
27+
RUN chmod +x dnscontrol && \
28+
chmod 755 dnscontrol && \
29+
cp dnscontrol /usr/local/bin/dnscontrol
30+
2331
RUN ["dnscontrol", "version"]
2432

2533
COPY README.md entrypoint.sh bin/filter-preview-output.sh /

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
name: DNSControl Action
2+
name: DNSControl Action Alpine
33
description: Deploy your DNS configuration to multiple providers
4-
author: Koen Rouwhorst <[email protected]>
4+
author: dan <[email protected]>
55
branding:
6-
icon: cloud
7-
color: yellow
6+
icon: globe
7+
color: blue
88
inputs:
99
args:
1010
description: DNSControl command

0 commit comments

Comments
 (0)