mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
Make the builds reproducable based on commit sha
This commit is contained in:
parent
b77b10d76f
commit
34301a49d9
3
Makefile
3
Makefile
@ -2,8 +2,9 @@
|
||||
|
||||
EXECUTABLE ?= drone-ssh
|
||||
IMAGE ?= plugins/$(EXECUTABLE)
|
||||
COMMIT ?= $(shell git rev-parse --short HEAD)
|
||||
|
||||
LDFLAGS = -X "main.buildDate=$(shell date -u '+%Y-%m-%d %H:%M:%S %Z')"
|
||||
LDFLAGS = -X "main.buildCommit=$(COMMIT)"
|
||||
PACKAGES = $(shell go list ./... | grep -v /vendor/)
|
||||
|
||||
all: deps build test
|
||||
|
Loading…
Reference in New Issue
Block a user