mirror of
https://github.com/KevinMidboe/traefik-etcd-advertiser.git
synced 2025-10-29 01:40:20 +00:00
Enable all supported os+archs, omit version in binary name
This commit is contained in:
5
Makefile
5
Makefile
@@ -4,8 +4,7 @@ PROJECT_NAME=$(shell basename $(CURDIR))
|
|||||||
|
|
||||||
APPLICATION_NAME := traefik-etcd-advertiser
|
APPLICATION_NAME := traefik-etcd-advertiser
|
||||||
VERSION := $(shell git describe --tags HEAD 2>/dev/null || echo $(DRONE_TAG))
|
VERSION := $(shell git describe --tags HEAD 2>/dev/null || echo $(DRONE_TAG))
|
||||||
# PLATFORMS := darwin/amd64 darwin/arm64 linux/amd64 linux/arm linux/arm64 windows/amd64
|
PLATFORMS := darwin/amd64 darwin/arm64 linux/amd64 linux/arm linux/arm64 windows/amd64
|
||||||
PLATFORMS := darwin/arm64 linux/amd64
|
|
||||||
|
|
||||||
## build: build the application
|
## build: build the application
|
||||||
build: install
|
build: install
|
||||||
@@ -23,7 +22,7 @@ release: install-vendor
|
|||||||
if [ "$$os" = "darwin" ]; then \
|
if [ "$$os" = "darwin" ]; then \
|
||||||
os="macOS"; \
|
os="macOS"; \
|
||||||
fi; \
|
fi; \
|
||||||
output_name="$(APPLICATION_NAME)-$(VERSION)-$$os-$$GOARCH"; \
|
output_name="$(APPLICATION_NAME)-$$os-$$GOARCH"; \
|
||||||
if [ "$$os" = "windows" ]; then \
|
if [ "$$os" = "windows" ]; then \
|
||||||
output_name+=".exe"; \
|
output_name+=".exe"; \
|
||||||
fi; \
|
fi; \
|
||||||
|
|||||||
Reference in New Issue
Block a user