From 2a184709d60ff5098a53eb114fc9981e9a86fa99 Mon Sep 17 00:00:00 2001 From: Alex R Date: Sun, 19 Nov 2023 19:42:59 +0100 Subject: [PATCH] Release try with tag --- .github/workflows/docker.yml | 5 ++--- Makefile | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ae39a4a..b5c4fa2 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -36,9 +36,9 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') # Release requires tag with: name: ${{ steps.meta.outputs.version }} - draft: true files: thanos-kit*.zip generate_release_notes: true @@ -60,7 +60,6 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - build-args: | - VER=${{ steps.meta.outputs.version }} + build-args: VER=${{ steps.meta.outputs.version }} cache-from: type=gha cache-to: type=gha,mode=max \ No newline at end of file diff --git a/Makefile b/Makefile index c6b3771..b4a56f0 100644 --- a/Makefile +++ b/Makefile @@ -16,3 +16,7 @@ build: ## Build binaries with version set docker: ## Builds 'thanos-kit' docker with no tag @docker build -t "thanos-kit" . + +tag: ## Tags commit to trigger GH Release + git tag ${VER} + git push --tags \ No newline at end of file