Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e5a69e5fb | ||
|
|
055f80bf9b |
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -26,8 +26,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: goreleaser/goreleaser-action@v6
|
||||||
|
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: latest
|
version: latest
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
builds:
|
builds:
|
||||||
- binary: acme-dns
|
- binary: acme-dns
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=1
|
- CGO_ENABLED=0
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
@ -20,3 +20,16 @@ archives:
|
|||||||
signs:
|
signs:
|
||||||
- artifacts: checksum
|
- artifacts: checksum
|
||||||
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
|
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
|
||||||
|
|
||||||
|
dockers:
|
||||||
|
- image_templates:
|
||||||
|
- "joohoi/acme-dns:{{ .Tag }}"
|
||||||
|
- "joohoi/acme-dns:latest"
|
||||||
|
dockerfile: Dockerfile.release
|
||||||
|
build_flag_templates:
|
||||||
|
- "--pull"
|
||||||
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
||||||
|
- "--label=org.opencontainers.image.name={{.ProjectName}}"
|
||||||
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
||||||
|
- "--label=org.opencontainers.image.version={{.Version}}"
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
FROM golang:alpine AS builder
|
FROM golang:alpine AS builder
|
||||||
LABEL maintainer="joona@kuori.org"
|
LABEL maintainer="joona@kuori.org"
|
||||||
|
|
||||||
RUN apk add --update gcc musl-dev git
|
RUN apk add --update git
|
||||||
|
|
||||||
ENV GOPATH /tmp/buildcache
|
ENV GOPATH /tmp/buildcache
|
||||||
RUN git clone https://github.com/joohoi/acme-dns /tmp/acme-dns
|
RUN git clone https://github.com/joohoi/acme-dns /tmp/acme-dns
|
||||||
WORKDIR /tmp/acme-dns
|
WORKDIR /tmp/acme-dns
|
||||||
RUN CGO_ENABLED=1 go build
|
RUN CGO_ENABLED=0 go build
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
|||||||
12
Dockerfile.release
Normal file
12
Dockerfile.release
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
RUN apk --no-cache add ca-certificates && update-ca-certificates
|
||||||
|
RUN mkdir -p /etc/acme-dns
|
||||||
|
RUN mkdir -p /var/lib/acme-dns
|
||||||
|
|
||||||
|
COPY acme-dns /usr/local/bin/acme-dns
|
||||||
|
|
||||||
|
VOLUME ["/etc/acme-dns", "/var/lib/acme-dns"]
|
||||||
|
ENTRYPOINT ["acme-dns"]
|
||||||
|
EXPOSE 53 80 443
|
||||||
|
EXPOSE 53/udp
|
||||||
Loading…
x
Reference in New Issue
Block a user