From 3c72f4aa5562665ec5ff9d1deb33a3e233e8b1ac Mon Sep 17 00:00:00 2001 From: Yoshiki Fujikane <40124947+ffjlabo@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:13:38 +0900 Subject: [PATCH] Add a param to run/piped in Makefile for setting --log-encoding to run the piped with specific log format (#4762) Signed-off-by: Yoshiki Fujikane --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cbe595a394..073374f185 100644 --- a/Makefile +++ b/Makefile @@ -130,11 +130,12 @@ stop/pipecd: run/piped: CONFIG_FILE ?= run/piped: INSECURE ?= false run/piped: LAUNCHER ?= false +run/piped: LOG_ENCODING ?= humanize run/piped: ifeq ($(LAUNCHER),true) - go run cmd/launcher/main.go launcher --config-file=$(CONFIG_FILE) --insecure=$(INSECURE) + go run cmd/launcher/main.go launcher --config-file=$(CONFIG_FILE) --insecure=$(INSECURE) --log-encoding=$(LOG_ENCODING) else - go run cmd/piped/main.go piped --tools-dir=/tmp/piped-bin --config-file=$(CONFIG_FILE) --insecure=$(INSECURE) + go run cmd/piped/main.go piped --tools-dir=/tmp/piped-bin --config-file=$(CONFIG_FILE) --insecure=$(INSECURE) --log-encoding=$(LOG_ENCODING) endif .PHONY: run/web