Skip to content

Commit

Permalink
Merge pull request #3 from InputObject2/master
Browse files Browse the repository at this point in the history
Added github chart-release and converted statefulset to deployment
  • Loading branch information
sedadas authored Jun 27, 2022
2 parents 549be4f + 10ea370 commit 8600bf4
Show file tree
Hide file tree
Showing 12 changed files with 499 additions and 378 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/chart-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# yamllint disable rule:line-length
---
# This is a basic workflow to help you get started with Actions

name: Release helm chart

# Controls when the workflow will run
# yamllint disable-line rule:truthy
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Git code
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@v1
with:
version: v3.8.1

- name: Add dependent chart repositories
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.4.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true
20 changes: 15 additions & 5 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
---
name: Lint and Test Charts

# yamllint disable-line rule:truthy
on:
push:
branches: [ master ]
branches:
- master
pull_request:
branches: [ master ]
branches:
- master

jobs:
lint-test:
Expand All @@ -18,14 +22,20 @@ jobs:
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0
version: v3.9.0

- name: Add dependent chart repositories
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.1.0
uses: helm/chart-testing-action@v2.2.1
with:
version: v3.5.1

- name: Run chart-testing (list-changed)
id: list-changed
Expand All @@ -39,7 +49,7 @@ jobs:
run: ct lint

- name: Create kind cluster
uses: helm/kind-action@v1.2.0
uses: helm/kind-action@v1.3.0
if: steps.list-changed.outputs.changed == 'true'

- name: Run chart-testing (install)
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
charts/
charts/*.tgz
9 changes: 0 additions & 9 deletions Chart.lock

This file was deleted.

Loading

0 comments on commit 8600bf4

Please sign in to comment.