forked from chipmk/docker-mac-net-connect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (14 loc) · 639 Bytes
/
Makefile
File metadata and controls
19 lines (14 loc) · 639 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PROJECT := github.com/chipmk/docker-mac-net-connect
SETUP_IMAGE := ghcr.io/chipmk/docker-mac-net-connect/setup
VERSION := $(shell git describe --tags)
LD_FLAGS := -X ${PROJECT}/version.Version=${VERSION} -X ${PROJECT}/version.SetupImage=${SETUP_IMAGE}
run:: build-docker run-go
build:: build-docker build-go
run-go::
go run -ldflags "${LD_FLAGS}" ${PROJECT}
build-go::
go build -ldflags "-s -w ${LD_FLAGS}" ${PROJECT}
build-docker::
docker build -t ${SETUP_IMAGE}:${VERSION} ./client
build-push-docker::
docker buildx build --platform linux/amd64,linux/arm64 --push -t ${SETUP_IMAGE}:${VERSION} ./client