1
0
Fork 0
mirror of https://github.com/Luzifer/dns.git synced 2024-12-23 03:11:20 +00:00
dns/build.sh

18 lines
376 B
Bash
Raw Normal View History

2018-01-30 22:26:44 +00:00
#!/bin/bash
set -euxo pipefail
# Download sourcecode
mkdir -p /go/src/github.com/coredns
git clone https://github.com/coredns/coredns.git /go/src/github.com/coredns/coredns
2018-01-30 22:26:44 +00:00
# Ensure version pinning
2018-01-30 22:26:44 +00:00
cd /go/src/github.com/coredns/coredns
git reset --hard ${COREDNS_VERSION}
# Copy cron drop-in
cp /src/cron_generate.go .
2018-01-30 22:26:44 +00:00
# Get dependencies and build
go get -d -v
2018-01-30 22:26:44 +00:00
go install