@@ -45,6 +45,20 @@ build: clean $(BINARY)
4545$(BINARY):
4646 CGO_ENABLED=0 $(GO) build -a -installsuffix cgo -ldflags="-X main.VERSION=${VERSION}" -o $@ github.com/pusher/oauth2_proxy
4747
48+.PHONY: docker
49+docker:
50+ docker build -f Dockerfile -t pusher/oauth2_proxy:latest .
51+
52+.PHONY: docker-all
53+docker-all: docker
54+ docker build -f Dockerfile -t pusher/oauth2_proxy:latest-amd64 .
55+ docker build -f Dockerfile -t pusher/oauth2_proxy:${VERSION} .
56+ docker build -f Dockerfile -t pusher/oauth2_proxy:${VERSION}-amd64 .
57+ docker build -f Dockerfile.arm64 -t pusher/oauth2_proxy:latest-arm64 .
58+ docker build -f Dockerfile.arm64 -t pusher/oauth2_proxy:${VERSION}-arm64 .
59+ docker build -f Dockerfile.armv6 -t pusher/oauth2_proxy:latest-armv6 .
60+ docker build -f Dockerfile.armv6 -t pusher/oauth2_proxy:${VERSION}-armv6 .
61+
4862.PHONY: test
4963test: dep lint
5064 $(GO) test -v -race $(go list ./... | grep -v /vendor/)