Browse Source

Fix drone build number/version

Signed-off-by: Jonas Franz <info@jonasfranz.software>
master
Jonas Franz 2 years ago
parent
commit
4e61d1ca09
Signed by untrusted user: JonasFranzDEV GPG Key ID: 506AEEBE80BEDECD
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      Makefile

+ 1
- 2
Makefile View File

@ -1,7 +1,6 @@
IMPORT := git.jonasfranz.software/JonasFranzDEV/gitea-github-migrator
GO ?= go
BUILD=$(or ${DRONE_BUILD_NUMBER},${DRONE_BUILD_NUMBER},0)
ifneq ($(DRONE_TAG),)
VERSION ?= $(subst v,,$(DRONE_TAG))
@ -13,7 +12,7 @@ else
endif
endif
LDFLAGS := -X main.Version=$(VERSION) -X main.build=$(BUILD)
LDFLAGS := -X main.version=$(VERSION) -X main.build=$(DRONE_BUILD_NUMBER)
.PHONY: all
all:


Loading…
Cancel
Save