Skip to content

Commit

Permalink
Migrate to buf.build (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 authored Sep 13, 2023
1 parent b7e0123 commit f9b0562
Show file tree
Hide file tree
Showing 34 changed files with 1,068 additions and 1,443 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ clean:

.PHONY: protoc
protoc:
docker pull ghcr.io/metal-stack/builder
docker run --rm --user $$(id -u):$$(id -g) -v ${PWD}:/work ghcr.io/metal-stack/builder protoc -I api --go_out=plugins=grpc:api api/v1/*.proto
docker run --rm --user $$(id -u):$$(id -g) -v ${PWD}:/work ghcr.io/metal-stack/builder protoc -I api --go_out=plugins=grpc:api api/grpc/health/v1/*.proto
make -C proto protoc

.PHONY: test
test:
Expand All @@ -40,7 +38,7 @@ generate:
go generate ./...

.PHONY: server
server:
server: protoc generate
go build -tags netgo -ldflags "-X 'github.com/metal-stack/v.Version=$(VERSION)' \
-X 'github.com/metal-stack/v.Revision=$(GITVERSION)' \
-X 'github.com/metal-stack/v.GitSHA1=$(SHA)' \
Expand Down
Loading

0 comments on commit f9b0562

Please sign in to comment.