1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Migrate Build and Integration Tests to CircleCI (#1292)

* Change the CI from GitHub Actions to [CircleCI](https://app.circleci.com/pipelines/github/StackExchange/dnscontrol?filter=all).
* Adds more platforms in the release as inspired by and discussed in #1260.
This commit is contained in:
Chris Hunt
2021-12-17 07:14:27 -05:00
committed by GitHub
parent 14c3014a2e
commit cc4eba6f16
6 changed files with 243 additions and 180 deletions

View File

@@ -1,17 +1,3 @@
FROM golang:1.16-alpine AS build-env
WORKDIR /go/src/github.com/StackExchange/dnscontrol
ADD . .
RUN apk update && apk add git
RUN GO111MODULE=on go run build/build.go -os=linux
RUN cp dnscontrol-Linux /go/bin/dnscontrol
RUN dnscontrol version
RUN go build -o cmd/convertzone/convertzone cmd/convertzone/main.go
RUN cp cmd/convertzone/convertzone /go/bin/convertzone
FROM alpine
RUN apk add --no-cache ca-certificates
COPY --from=build-env /go/bin/dnscontrol /usr/local/bin
COPY --from=build-env /go/bin/convertzone /usr/local/bin
WORKDIR /dns
RUN dnscontrol version
CMD dnscontrol
FROM scratch
ENTRYPOINT ["/dnscontrol"]
COPY dnscontrol /