This commit is contained in:
C菌
2022-04-28 15:50:11 +08:00
parent 94cd2ce218
commit f810b7bc91
4 changed files with 15 additions and 4 deletions

View File

@@ -20,6 +20,13 @@ LDFlags=" \
build:
mkdir -p bin/ && go build -ldflags $(LDFlags) -o ./bin/ ./...
.PHONY:buildx
buildx:
docker run --privileged --rm tonistiigi/binfmt --install all
docker buildx create --use --name xbuilder
docker buildx inspect xbuilder --bootstrap
docker buildx build --platform linux/amd64,linux/arm64 -t mirrors2/tinyurl:latest . --push
.PHONY: clean
# clean
clean: