Skip to content

Commit

Permalink
Helm github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rlex committed Jun 19, 2020
1 parent 45871fa commit 04c43d5
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 122 deletions.
22 changes: 0 additions & 22 deletions .circleci/config.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint and Test Charts

on: pull_request

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Fetch history
run: git fetch --prune --unshallow

- name: Run chart-testing (lint)
id: lint
uses: helm/[email protected]
with:
command: lint
config: ct.yaml

- name: Create kind cluster
uses: helm/[email protected]
with:
install_local_path_provisioner: true
if: steps.lint.outputs.changed == 'true'

- name: Run chart-testing (install)
uses: helm/[email protected]
with:
command: install
config: ct.yaml
45 changes: 45 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release Charts

on:
push:
branches:
- master

jobs:
release:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Turnstyle
uses: softprops/turnstyle@v1
with:
continue-after-seconds: 180
env:
GITHUB_TOKEN: ${{ secrets.CR_TOKEN }}

- name: Fetch history
run: git fetch --prune --unshallow

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
# See https://github.com/helm/chart-releaser-action/issues/6
- name: Install Helm
run: |
curl -fsSLo get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
- name: Add dependency chart repos
run: |
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
- name: Run chart-releaser
uses: helm/[email protected]
# with:
# charts_repo_url: https://rlex.github.io/helm-charts/
env:
CR_TOKEN: "${{ secrets.CR_TOKEN }}"
3 changes: 3 additions & 0 deletions cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
helm-extra-args: --timeout 600s
chart-dirs:
- charts
100 changes: 0 additions & 100 deletions publish.sh

This file was deleted.

0 comments on commit 04c43d5

Please sign in to comment.