mirror of
https://github.com/Luzifer/dns.git
synced 2024-11-09 22:50:06 +00:00
17 lines
376 B
Bash
17 lines
376 B
Bash
#!/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
|
|
|
|
# Ensure version pinning
|
|
cd /go/src/github.com/coredns/coredns
|
|
git reset --hard ${COREDNS_VERSION}
|
|
|
|
# Copy cron drop-in
|
|
cp /src/cron_generate.go .
|
|
|
|
# Get dependencies and build
|
|
go get -d -v
|
|
go install
|