diff --git a/.drone.yml b/.drone.yml index 02b6f1e..0d3c150 100644 --- a/.drone.yml +++ b/.drone.yml @@ -43,7 +43,7 @@ steps: image: plugins/gitea-release settings: title: ${DRONE_TAG} - files: tag-notifier-* + files: dist/* checksum: - md5 - sha1 diff --git a/.gitignore b/.gitignore index 6c7d48b..e413f62 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,4 @@ # Dependency directories (remove the comment below to include it) # vendor/ -tag-checker -tag-checker-* +dist/ diff --git a/Makefile b/Makefile index a576d66..58d10d7 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ -OUTPUT ?= tag-checker -DOCKER_TAG ?= $(OUTPUT)-dev-${USER} +NAME ?= tag-checker +OUTPUT ?= dist/$(NAME) +DOCKER_TAG ?= $(NAME)-dev-${USER} GIT_TAG_NAME := $(shell git tag -l --contains HEAD) GIT_SHA := $(shell git rev-parse HEAD) VERSION := $(if $(GIT_TAG_NAME),$(GIT_TAG_NAME),$(GIT_SHA))