From 95c441b765866d0db325b6a2da2e716d871a6961 Mon Sep 17 00:00:00 2001 From: Moritz Zimmer Date: Thu, 4 Jul 2024 13:00:09 +0200 Subject: [PATCH] use https://buf.build/docs/reference/cli/buf/push#git-metadata for pushes --- .github/workflows/packages.yml | 2 +- Makefile | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 9e342be4..e5b34d13 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -138,4 +138,4 @@ jobs: run: | RELEASE_TAG=${GITHUB_REF/refs\/tags\/v/} echo $RELEASE_TAG - make push LABEL=RELEASE_TAG + make push diff --git a/Makefile b/Makefile index e8ea7290..b18d014a 100644 --- a/Makefile +++ b/Makefile @@ -26,16 +26,11 @@ build: ## Builds buf image, see https://buf.build/docs/reference/images @echo "+ $@" @buf build -# Buf bsr label, see https://buf.build/docs/bsr/module/publish#pushing-with-labels LABEL ?= .PHONY: push -push: build ## Pushes tapir to the buf schema registry, see https://buf.build/docs/bsr/introduction +push: build ## Pushes tapir to the buf schema registry, see https://buf.build/docs/bsr/introduction and https://buf.build/docs/bsr/module/publish#pushing-with-labels @echo "+ $@" -ifeq ($(LABEL),) - @buf push -else - @buf push --label $(LABEL) -endif + @buf push --git-metadata .PHONY: test test: generate ## Runs all tests