mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Makefile: Force use drone-cli 1.4.0 version (#40385)
* Force use drone-cli 1.4.0 * Small modifications to prevent null generation * Sign drone * Use bingo to declare drone-cli version * Update message in Makefile * Update to latest grabpl version
This commit is contained in:
committed by
GitHub
parent
534e6b3f5a
commit
89e7a56714
12
Makefile
12
Makefile
@@ -15,6 +15,9 @@ SH_FILES ?= $(shell find ./scripts -name *.sh)
|
||||
|
||||
all: deps build
|
||||
|
||||
drone-version:
|
||||
DRONE_VERSION := $(shell drone -v | cut -d' ' -f3)
|
||||
|
||||
##@ Dependencies
|
||||
|
||||
deps-go: ## Install backend dependencies.
|
||||
@@ -151,9 +154,12 @@ clean: ## Clean up intermediate build artifacts.
|
||||
# Use this make target to regenerate the configuration YAML files when
|
||||
# you modify starlark files.
|
||||
drone:
|
||||
drone starlark
|
||||
drone lint
|
||||
drone --server https://drone.grafana.net sign --save grafana/grafana
|
||||
@if [ "$(DRONE_VERSION)" != "1.4.0" ]; then\
|
||||
echo "WARN: You are using drone-cli ${DRONE_VERSION}. Please update your LOCAL version to 1.4.0. Using latest bingo version...";\
|
||||
fi
|
||||
$(DRONE) starlark --format
|
||||
$(DRONE) lint .drone.yml
|
||||
$(DRONE) --server https://drone.grafana.net sign --save grafana/grafana
|
||||
|
||||
help: ## Display this help.
|
||||
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
|
||||
|
||||
Reference in New Issue
Block a user