summaryrefslogtreecommitdiff
path: root/tools/build-caddy
blob: 372c60b5078994c9c29e481083a5b12c8335423b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash -e

## tools/build-caddy
##
## Builds Caddy from source.

cd "$(dirname "$0")/.."

VERSION="$(tools/version)"

[ -d target ] || mkdir target

docker run \
	--rm \
	--interactive \
	--tty \
	--volume "$PWD/target:/app" \
	"caddy-builder:$VERSION" \
		xcaddy build \
			--output "caddy-$VERSION" \
			--with github.com/aksdb/caddy-cgi/v2 \