Skip to content

Commit

Permalink
Merge pull request #151 from prudhvigodithi/clusterrole-fix
Browse files Browse the repository at this point in the history
Redefine helm release workflow
  • Loading branch information
idanl21 authored May 26, 2022
2 parents a2156fe + 7668f21 commit 116d412
Show file tree
Hide file tree
Showing 19 changed files with 61 additions and 15 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Charts

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.8.1

# See https://github.com/helm/chart-releaser
# See https://github.com/helm/chart-releaser-action
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
13 changes: 0 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@ jobs:
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "LATE_IMG=public.ecr.aws/opsterio/opense arch-operator:latest" >> $GITHUB_ENV
- name: Prepare helm chart
env:
GITHUB_REF: ${{ github.ref }}
run: |
pwd
ls
echo ${{ env.RELEASE_VERSION }}
cat helm/opensearch-operator/Chart.yaml | sed 's/0.1.0/'${{ env.RELEASE_VERSION }}'/'
- name: Publish Helm charts
uses: stefanprodan/helm-gh-pages@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
charts_dir: helm
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down
25 changes: 25 additions & 0 deletions charts/opensearch-operator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

---
## [Unreleased]
### Added
### Changed
### Deprecated
### Removed
### Fixed
### Security
---
## [1.0.1]
### Added
### Changed
- Updated version to 1.0.1
### Deprecated
### Removed
### Fixed
### Security

[Unreleased]: https://github.com/Opster/opensearch-k8s-operator/compare/opensearch-operator-1.0.1...HEAD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opensearch-operator
description: A Helm chart for Kubernetes
description: The OpenSearch Operator Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
Expand All @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 1.0.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions ct.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target-branch: main
helm-extra-args: --timeout 800s

0 comments on commit 116d412

Please sign in to comment.