Skip to content

Commit

Permalink
chore: host charts on GitHub pages (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux authored Mar 22, 2024
1 parent ec47ca9 commit 1fb3529
Show file tree
Hide file tree
Showing 22 changed files with 32 additions and 49 deletions.
70 changes: 23 additions & 47 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,57 +1,33 @@
name: Helm Charts build & deploy
name: Release Charts

on:
push:
branches: main
branches:
- main

jobs:
build:
release:
permissions:
contents: write
runs-on: ubuntu-latest
strategy:
matrix:
chart: [request-node, request-ipfs]
steps:
- uses: actions/checkout@v3
- uses: azure/setup-helm@v3
with:
version: v3.1.1
- name: Lint
run: helm lint ${{ matrix.chart }}
- name: Build
run: |
mkdir charts
helm package ${{ matrix.chart }} -d ./charts
- uses: actions/upload-artifact@v3
- name: Checkout
uses: actions/checkout@v3
with:
name: charts
path: charts
fetch-depth: 0

deploy:
#if: github.ref == 'refs/heads/main'
needs:
- build
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
steps:
- uses: actions/download-artifact@v3
with:
name: charts
path: charts
- uses: azure/setup-helm@v3
with:
version: v3.11.0
- id: "auth"
name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v1"
with:
token_format: "access_token"
workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.GCP_SA }}
- name: Install helm-gcs
run: helm plugin install https://github.com/hayorov/helm-gcs --version 0.4.1
- name: Deploy
- name: Configure Git
run: |
helm repo add request-gcs gs://request-charts
for f in ./charts/*; do echo $f; helm gcs push $f request-gcs --public --force ; done;
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3

- name: Lint
run: helm lint charts/*

- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
[![CircleCI](https://circleci.com/gh/RequestNetwork/request-helm-charts.svg?style=svg&circle-token=7f672824b8febacaea69fa451b9944fd07454617)](https://circleci.com/gh/RequestNetwork/request-helm-charts)

> ### Note: the chart repository URL has changed
> - from: https://request-charts.storage.googleapis.com
> - to: https://requestnetwork.github.io/request-helm-charts
>
> Please use the new URL, the old one will stop being available soon.
# Request Helm Charts repository

This repository contains sources for all of Request Helm Charts. Using docker images available at https://hub.docker.com/u/requestnetwork
This repository contains sources for all Request Helm Charts.
They use Docker images available at https://hub.docker.com/u/requestnetwork.

## How to use?

```
helm repo add request https://request-charts.storage.googleapis.com
helm repo add request https://requestnetwork.github.io/request-helm-charts
helm repo update
helm install request/request-node
```
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1fb3529

Please sign in to comment.