Skip to content

Commit

Permalink
Add a Makefile target for the "ko apply" step. (#572)
Browse files Browse the repository at this point in the history
We now pass enough LDFLAGs that this will help keep things consistent.

Signed-off-by: Dan Lorenc <lorenc.d@gmail.com>
  • Loading branch information
dlorenc authored Dec 29, 2021
1 parent 15e7905 commit 8443e12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8443e12

Please sign in to comment.