-
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.
chore: host charts on GitHub pages (#27)
- Loading branch information
1 parent
ec47ca9
commit 1fb3529
Showing
22 changed files
with
32 additions
and
49 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,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 }}" |
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
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.