There was an error while loading. Please reload this page.
1 parent 8f81c23 commit 852f0beCopy full SHA for 852f0be
Makefile
@@ -7,6 +7,9 @@ SHELL := /usr/bin/env bash -o pipefail
7
.SHELLFLAGS := -ec
8
export ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
9
10
+# use CI-provided SOURCE_GIT_COMMIT if available, fallback to local git commit ID
11
+export GIT_COMMIT := $(or $(SOURCE_GIT_COMMIT),$(shell git rev-parse HEAD))
12
+
13
GOLANG_VERSION := $(shell sed -En 's/^go (.*)$$/\1/p' "go.mod")
14
# Image URL to use all building/pushing image targets
15
ifeq ($(origin IMAGE_REGISTRY), undefined)
0 commit comments