-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from shakahl/feature/helm-chart-hasura-graphql-…
…engine [hasura-graphql-engine] Feature/helm chart hasura graphql engine
- Loading branch information
Showing
6 changed files
with
110 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
# See https://github.com/helm/chart-testing#configuration | ||
remote: origin | ||
target-branch: master | ||
remote: 'origin' | ||
target-branch: 'master' | ||
chart-dirs: | ||
- charts | ||
- './charts' | ||
chart-repos: | ||
- stable=https://charts.helm.sh/stable | ||
- shakahl=https://shakahl.github.io/helm-charts | ||
helm-extra-args: --timeout 600s | ||
- 'stable=https://charts.helm.sh/stable' | ||
# - shakahl=https://shakahl.github.io/helm-charts | ||
helm-extra-args: '--timeout 600s' | ||
excluded-charts: [] | ||
check-version-increment: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,75 @@ | ||
name: Lint and Test Charts | ||
|
||
on: pull_request | ||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: ['*', '!master', '!main', '!gh-pages'] | ||
pull_request: | ||
branches: ['*', '!master', '!main', '!gh-pages'] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
GITHUB_TOKEN: '${{ secrets.SECRET_GITHUB_TOKEN }}' | ||
|
||
jobs: | ||
lint-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# with: | ||
# fetch-depth: 0 | ||
- name: Fetch history | ||
run: git fetch --prune # --unshallow | ||
run: | | ||
git fetch --prune --unshallow || echo "Unable to do git fetch --prune --unshallow ..." | ||
git fetch --prune || echo "Unable to do git fetch --prune ..." | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
# - name: Install ACT deps | ||
# if: ${{ !env.ACT }} | ||
# run: | | ||
# /bin/sh -c "ls" | ||
git config user.name "$GITHUB_ACTOR" || echo "Unable to set git config user.name ..." | ||
git config user.email "[email protected]" || echo "Unable to set git config user.email ..." | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v1 | ||
id: install | ||
# 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 | ||
- uses: actions/setup-python@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
token: '${{ secrets.SECRET_GITHUB_TOKEN }}' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
# - uses: actions/setup-python@v2 | ||
# with: | ||
# token: '${{ secrets.SECRET_GITHUB_TOKEN }}' | ||
# python-version: '3.8' # ${{ matrix.python-version }} | ||
# # architecture: 'x64' | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed) | ||
changed=$(ct list-changed --config .github/.ct.yaml ) | ||
if [[ -n "$changed" ]]; then | ||
echo "::set-output name=changed::true" | ||
fi | ||
- name: Run chart-testing (lint) | ||
run: ct lint | ||
run: ct lint --config .github/.ct.yaml | ||
# - name: Create kind cluster | ||
# uses: helm/[email protected] | ||
# if: steps.list-changed.outputs.changed == 'true' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,33 +4,34 @@ on: | |
push: | ||
branches: | ||
- master | ||
- main | ||
paths: | ||
- '.github/workflows/release.yaml' | ||
- '**/Chart.yaml' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
GITHUB_TOKEN: '${{ secrets.SECRET_GITHUB_TOKEN }}' | ||
CR_TOKEN: '${{ secrets.SECRET_GITHUB_TOKEN }}' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# - name: Install local dependencies for "act" | ||
# if: ${{ !env.ACT }} | ||
# run: | | ||
# /bin/sh -c "ls" | ||
|
||
- name: Fetch history | ||
run: git fetch --prune # --unshallow | ||
run: | | ||
git fetch --prune --unshallow || echo "Unable to do git fetch --prune --unshallow ..." | ||
git fetch --prune || echo "Unable to do git fetch --prune ..." | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
# - name: Set up Helm | ||
# uses: azure/setup-helm@v1 | ||
# id: install | ||
git config user.name "$GITHUB_ACTOR" || echo "Unable to set git config user.name ..." | ||
git config user.email "[email protected]" || echo "Unable to set git config user.email ..." | ||
# See https://github.com/helm/chart-releaser-action/issues/6 | ||
- name: Install Helm | ||
|
@@ -39,10 +40,22 @@ jobs: | |
chmod 700 get_helm.sh | ||
./get_helm.sh | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
token: '${{ secrets.SECRET_GITHUB_TOKEN }}' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Add dependency chart repos | ||
run: | | ||
helm repo add stable https://charts.helm.sh/stable/ | ||
helm repo add shakahl https://shakahl.github.io/helm-charts/ | ||
# helm repo add shakahl https://shakahl.github.io/helm-charts/ | ||
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,6 @@ | |
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
# helm/charts | ||
OWNERS | ||
hasura-graphql-engine-*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ apiVersion: v2 | |
|
||
name: hasura-graphql-engine | ||
|
||
icon: https://raw.githubusercontent.com/hasura/graphql-engine/master/assets/brand/hasura_icon_blue.svg | ||
|
||
description: Hasura is an instant GraphQL with built-in authorization for your data. | ||
|
||
keywords: | ||
|
@@ -13,20 +15,24 @@ keywords: | |
- microservice | ||
- distributed | ||
- api | ||
- framework | ||
|
||
engine: gotpl | ||
|
||
type: application | ||
|
||
version: 0.0.1 | ||
|
||
appVersion: "v1.0.0" | ||
|
||
kubeVersion: ">=1.16.0-0" | ||
|
||
home: https://github.com/hasura/graphql-engine | ||
|
||
sources: | ||
- https://github.com/shakahl/helm-charts/charts/hasura-graphql-engine/ | ||
- https://github.com/shakahl/helm-charts/ | ||
- https://github.com/hasura/graphql-engine | ||
|
||
maintainers: | ||
- name: shakahl | ||
email: [email protected] | ||
|
||
engine: gotpl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters