-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: don't run licenses-report locally
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ ARG TARGETOS TARGETARCH | |
ARG NAME | ||
ARG VERSION | ||
ARG REVISION | ||
ARG SKIP_LICENSES_REPORT=false | ||
|
||
WORKDIR /app | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,16 @@ help: | |
## licenses-report: generate a report of all licenses | ||
.PHONY: licenses-report | ||
licenses-report: | ||
ifeq ($(SKIP_LICENSES_REPORT), true) | ||
@echo "Skipping licenses report" | ||
rm -rf ./licenses && mkdir -p ./licenses | ||
else | ||
@echo "Generating licenses report" | ||
rm -rf ./licenses | ||
go run github.com/google/[email protected] save . --save_path ./licenses | ||
go run github.com/google/[email protected] report . > ./licenses/THIRD-PARTY.csv | ||
cp LICENSE ./licenses/LICENSE.txt | ||
endif | ||
|
||
# ==================================================================================== # | ||
# QUALITY CONTROL | ||
|
@@ -66,4 +72,4 @@ run: tidy build | |
## container: build the container image | ||
.PHONY: container | ||
container: | ||
docker build -t extension-prometheus:latest . | ||
docker build --build-arg SKIP_LICENSES_REPORT="true" -t extension-prometheus:latest . |