mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-24 23:30:39 +00:00
Make the builds reproducable based on commit sha
This commit is contained in:
parent
651fadbc16
commit
417188af50
3
Makefile
3
Makefile
@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
EXECUTABLE ?= drone-terraform
|
EXECUTABLE ?= drone-terraform
|
||||||
IMAGE ?= plugins/$(EXECUTABLE)
|
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/)
|
PACKAGES = $(shell go list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
all: deps build test
|
all: deps build test
|
||||||
|
Loading…
Reference in New Issue
Block a user