|
1 | | -FROM alpine:3.17.2@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a |
| 1 | +FROM alpine:3.18.5@sha256:d695c3de6fcd8cfe3a6222b0358425d40adfd129a8a47c3416faff1a8aece389 |
2 | 2 |
|
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]>" |
5 | 5 |
|
6 | 6 | LABEL "com.github.actions.name"="DNSControl" |
7 | 7 | 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" |
10 | 10 |
|
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 |
13 | 14 |
|
14 | 15 | 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 |
16 | 17 |
|
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 |
22 | 19 |
|
| 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 | + |
23 | 31 | RUN ["dnscontrol", "version"] |
24 | 32 |
|
25 | 33 | COPY README.md entrypoint.sh bin/filter-preview-output.sh / |
|
0 commit comments