3VERSION := $(shell git describe --always --dirty --tags 2>/dev/null || echo "undefined")
4# Allow to override image registry.
5REGISTRY ?= quay.io/oauth2-proxy
22 GO111MODULE=on $(GOLANGCILINT) run
28 GO111MODULE=on CGO_ENABLED=0 $(GO) build -a -installsuffix cgo -ldflags="-X main.VERSION=${VERSION}" -o $@ github.com/oauth2-proxy/oauth2-proxy
32 docker build -f Dockerfile -t $(REGISTRY)/oauth2-proxy:latest .
36 docker build -f Dockerfile -t $(REGISTRY)/oauth2-proxy:latest-amd64 .
37 docker build -f Dockerfile -t $(REGISTRY)/oauth2-proxy:${VERSION} .
38 docker build -f Dockerfile -t $(REGISTRY)/oauth2-proxy:${VERSION}-amd64 .
39 docker build -f Dockerfile.arm64 -t $(REGISTRY)/oauth2-proxy:latest-arm64 .
40 docker build -f Dockerfile.arm64 -t $(REGISTRY)/oauth2-proxy:${VERSION}-arm64 .
41 docker build -f Dockerfile.armv6 -t $(REGISTRY)/oauth2-proxy:latest-armv6 .
42 docker build -f Dockerfile.armv6 -t $(REGISTRY)/oauth2-proxy:${VERSION}-armv6 .
46 docker push $(REGISTRY)/oauth2-proxy:latest
48.PHONY: docker-push-all
49docker-push-all: docker-push
50 docker push $(REGISTRY)/oauth2-proxy:latest-amd64
51 docker push $(REGISTRY)/oauth2-proxy:${VERSION}
52 docker push $(REGISTRY)/oauth2-proxy:${VERSION}-amd64
53 docker push $(REGISTRY)/oauth2-proxy:latest-arm64
54 docker push $(REGISTRY)/oauth2-proxy:${VERSION}-arm64
55 docker push $(REGISTRY)/oauth2-proxy:latest-armv6
56 docker push $(REGISTRY)/oauth2-proxy:${VERSION}-armv6
60 GO111MODULE=on $(GO) test -v -race ./...
64 BINARY=${BINARY} VERSION=${VERSION} ./dist.sh
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list