mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Add env var check to make drone (#83337)
This commit is contained in:
1
Makefile
1
Makefile
@@ -318,6 +318,7 @@ gen-ts:
|
|||||||
# Use this make target to regenerate the configuration YAML files when
|
# Use this make target to regenerate the configuration YAML files when
|
||||||
# you modify starlark files.
|
# you modify starlark files.
|
||||||
drone: $(DRONE)
|
drone: $(DRONE)
|
||||||
|
bash scripts/drone/env-var-check.sh
|
||||||
$(DRONE) starlark --format
|
$(DRONE) starlark --format
|
||||||
$(DRONE) lint .drone.yml --trusted
|
$(DRONE) lint .drone.yml --trusted
|
||||||
$(DRONE) --server https://drone.grafana.net sign --save grafana/grafana
|
$(DRONE) --server https://drone.grafana.net sign --save grafana/grafana
|
||||||
|
|||||||
12
scripts/drone/env-var-check.sh
Executable file
12
scripts/drone/env-var-check.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# ensure DRONE_SERVER and DRONE_TOKEN env variables are set
|
||||||
|
if [ -z "$DRONE_SERVER" ]; then
|
||||||
|
echo "DRONE_SERVER environment variable is not set."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$DRONE_TOKEN" ]; then
|
||||||
|
echo "DRONE_TOKEN environment variable is not set."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user