diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 0d009ab..0000000 --- a/.drone.yml +++ /dev/null @@ -1,38 +0,0 @@ -kind: pipeline -type: docker -name: default - -steps: -- name: test - image: golang:1.14-alpine - pull: true - environment: - CGO_ENABLED: 0 - GOOS: linux - GOARCH: amd64 - commands: - - cd coredns && go test -- name: build - image: golang:1.14-alpine - pull: true - environment: - CGO_ENABLED: 0 - GOOS: linux - GOARCH: amd64 - commands: - - cd coredns && go build - when: - event: - - tag -- name: release - image: plugins/gitea-release - settings: - base_url: https://git.makerforce.io - api_key: - from_secret: gitea_token - files: coredns/coredns - when: - event: - - tag - -# vim: ts=2:sw=2 diff --git a/.gitignore b/.gitignore index 2eaa759..00a60d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -coredns/coredns_* -coredns/gitea_token +coredns/build/ diff --git a/coredns/Makefile b/coredns/Makefile new file mode 100644 index 0000000..cdef9bd --- /dev/null +++ b/coredns/Makefile @@ -0,0 +1,10 @@ +GO:=go +NAME:=coredns + +.PHONY: build +build: + $(RM) -rf build && mkdir build + GOOS=darwin GOARCH=amd64 $(GO) build -o build/coredns_darwin_amd64 + GOOS=windows GOARCH=amd64 $(GO) build -o build/coredns_windows_amd64.exe + GOOS=linux GOARCH=amd64 $(GO) build -o build/coredns_linux_amd64 + GOOS=linux GOARCH=arm64 $(GO) build -o build/coredns_linux_arm64