feat: port scheduler-docker-local :report subcommand to golang
The bash :report implementation for the scheduler-docker-local plugin is replaced with a compiled golang binary. The plugin already shipped golang code, so the report subcommand is added alongside its existing triggers binary, and the init-process and parallel-schedule-count helpers remain in bash for the deploy pipeline.
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
TRIGGERS = triggers/scheduler-cron-write triggers/scheduler-storage-exec
|
||||
BUILD = triggers
|
||||
TRIGGERS = triggers/report triggers/scheduler-cron-write triggers/scheduler-storage-exec
|
||||
BUILD = report-subcommand triggers
|
||||
PLUGIN_NAME = scheduler-docker-local
|
||||
|
||||
clean-report-subcommand:
|
||||
rm -rf report-subcommand
|
||||
|
||||
report-subcommand: clean-report-subcommand src/subcommands/subcommands.go
|
||||
GOARCH=$(GOARCH) go build -mod=readonly -ldflags="-s -w" $(GO_ARGS) -o report-subcommand src/subcommands/subcommands.go
|
||||
ln -sf ../report-subcommand subcommands/report
|
||||
|
||||
include ../../common.mk
|
||||
|
||||
Reference in New Issue
Block a user