Browse Source

Make the builds reproducable based on commit sha

pull/9/head
Thomas Boerger 9 years ago
parent
commit
417188af50
  1. 3
      Makefile

3
Makefile

@ -2,8 +2,9 @@
EXECUTABLE ?= drone-terraform
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…
Cancel
Save