From 8443e12ecb9fad549bbd25542728dbfe05b555b2 Mon Sep 17 00:00:00 2001 From: dlorenc <dlorenc@google.com> Date: Wed, 29 Dec 2021 07:01:47 -0600 Subject: [PATCH] Add a Makefile target for the "ko apply" step. (#572) We now pass enough LDFLAGs that this will help keep things consistent. Signed-off-by: Dan Lorenc <lorenc.d@gmail.com> --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 12083a4..295cd8e 100644 --- a/Makefile +++ b/Makefile @@ -119,6 +119,9 @@ ko: --platform=all --tags $(GIT_VERSION) --tags $(GIT_HASH) \ github.com/sigstore/rekor/cmd/rekor-cli +deploy: + LDFLAGS="$(SERVER_LDFLAGS)" GIT_HASH=$(GIT_HASH) GIT_VERSION=$(GIT_VERSION) ko apply -f config/ + sign-container: ko cosign sign --key .github/workflows/cosign.key -a GIT_HASH=$(GIT_HASH) ${KO_DOCKER_REPO}/rekor-server:$(GIT_HASH) cosign sign --key .github/workflows/cosign.key -a GIT_HASH=$(GIT_HASH) ${KO_DOCKER_REPO}/rekor-cli:$(GIT_HASH) -- GitLab