-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
22 lines (15 loc) · 779 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
BASE_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
export HUB ?= ghcr.io/ingwonsong
export KO_DOCKER_REPO = $(HUB)/docker-credential-magic-proxy
all: publish
publish:
ko publish --platform=linux/amd64 -B github.com/ingwonsong/docker-credential-magic-proxy/cmd/proxy -t latest
docker-credential-magician mutate ${KO_DOCKER_REPO}/proxy:latest
publish-debug:
KO_CONFIG_PATH=${BASE_DIR}/.ko/debug ko publish --platform=linux/amd64 -B github.com/ingwonsong/docker-credential-magic-proxy/cmd/proxy -t latest
docker-credential-magician mutate ${KO_DOCKER_REPO}/proxy:latest
build: ${BASE_DIR}/out/proxy
${BASE_DIR}/out/proxy:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ${BASE_DIR}/out/proxy ${BASE_DIR}/cmd/proxy/...
clean:
rm -rf ${BASE_DIR}/out