mirror of
https://github.com/we-promise/sure.git
synced 2026-04-14 01:24:06 +00:00
Refactor GitHub Actions workflows (#1023)
* Unify release workflows and add chart/mobile wrappers * Update chart CI to kube 1.25 * Fetch tagged commit before pushing release branch * Old `azure/setup-helm` * Base chart dispatch version on existing chart tags * `grep` failure with `pipefail` bypasses the user-friendly error message * `gh-pages` push lacks retry logic * Auto-incremented chart tag collision * `grep -Ev` pipeline will crash * Missed one
This commit is contained in:
38
.github/workflows/chart-ci.yml
vendored
Normal file
38
.github/workflows/chart-ci.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Chart CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'charts/**'
|
||||
- '.github/workflows/chart-ci.yml'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'charts/**'
|
||||
- '.github/workflows/chart-ci.yml'
|
||||
|
||||
jobs:
|
||||
helm-checks:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Helm
|
||||
uses: azure/setup-helm@v4.3.1
|
||||
|
||||
- name: Add chart dependencies repositories
|
||||
run: |
|
||||
helm repo add cloudnative-pg https://cloudnative-pg.github.io/charts
|
||||
helm repo add ot-helm https://ot-container-kit.github.io/helm-charts
|
||||
helm repo update
|
||||
|
||||
- name: Build chart dependencies
|
||||
run: helm dependency build charts/sure
|
||||
|
||||
- name: Lint chart
|
||||
run: helm lint charts/sure
|
||||
|
||||
- name: Render templates
|
||||
run: helm template sure charts/sure --kube-version 1.25.0 >/tmp/sure-chart-rendered.yaml
|
||||
Reference in New Issue
Block a user