Skip to content

Commit

Permalink
add helm-release action
Browse files Browse the repository at this point in the history
  • Loading branch information
ganievs committed Jul 31, 2023
1 parent 37a1c35 commit 7578b90
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,29 @@ jobs:
push: true
tags: ${{ steps.workerprocess.outputs.tags }}
labels: ${{ steps.workerprocess.outputs.labels }}

helm-release:
if: startsWith(github.ref, 'refs/tags/v') == true
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v3
- name: Generate operator chart
run: make helm
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Release
uses: softprops/action-gh-release@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ artifacts: kustomize
.PHONY: artifacts
helm: kustomize helmify
cat ${RELEASE_PATH}/temporal-operator.crds.yaml ${RELEASE_PATH}/temporal-operator.yaml | \
$(HELMIFY) -crd-dir -image-pull-secrets -generate-defaults temporal-operator
$(HELMIFY) -crd-dir -image-pull-secrets -generate-defaults charts/temporal-operator

.PHONY: bundle
bundle: manifests kustomize operator-sdk ## Generate bundle manifests and metadata, then validate generated files.
Expand Down

0 comments on commit 7578b90

Please sign in to comment.