From 7f6c7c5a4b34e02001fc302bf0c3bfdf5c99a77f Mon Sep 17 00:00:00 2001 From: yokawasa Date: Mon, 24 Jan 2022 21:43:22 +0900 Subject: [PATCH 1/3] added subcommand manifests-release --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 1ebf1d3..f839aa5 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,10 @@ manifests: bin/controller-gen ## Generate WebhookConfiguration, ClusterRole and generate: bin/controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..." +manifests-release: manifests bin/kustomize ## Generate all-in-one manifest for release + cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG} + $(KUSTOMIZE) build config/default > fluent-pvc-operator.yaml + fmt: ## Run go fmt against code. go fmt ./... From 60f31bd23a0014af502d6cdefdebfa317b35005f Mon Sep 17 00:00:00 2001 From: yokawasa Date: Tue, 25 Jan 2022 20:19:10 +0900 Subject: [PATCH 2/3] add dummy trigger --- .github/workflows/main.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5faa4d8..bbd9497 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -4,6 +4,7 @@ on: push: branches: - 'main' + - 'support-auto-release-creation-in-ci' tags: - '*' pull_request: @@ -88,3 +89,19 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max + + - name: Get Tag Name + id: get_tag + run: | + echo ::set-output name=TAG::${GITHUB_REF#refs/tags/} + - name: Create release YAML + run: | + make manifests-release IMG=$CONTAINER_IMAGE_REPOSITORY:${{ steps.get_tag.outputs.TAG }} + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + name: ${{ steps.get_tag.outputs.TAG }} + draft: false + prerelease: false + generate_release_notes: true + files: fluent-pvc-operator.yaml From 3ef4940148d37b098c649765e0b590268ef95219 Mon Sep 17 00:00:00 2001 From: yokawasa Date: Tue, 25 Jan 2022 20:39:02 +0900 Subject: [PATCH 3/3] remove dummy trigger --- .github/workflows/main.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index bbd9497..7d8c555 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -4,7 +4,6 @@ on: push: branches: - 'main' - - 'support-auto-release-creation-in-ci' tags: - '*' pull_request: