Skip to content

Commit

Permalink
Merge pull request #30 from st-tech/support-auto-release-creation-in-ci
Browse files Browse the repository at this point in the history
Support auto release generation in CI
  • Loading branch information
yokawasa authored Jan 28, 2022
2 parents c33cbf3 + 3ef4940 commit 70dcd15
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,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
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...

Expand Down

0 comments on commit 70dcd15

Please sign in to comment.