-
Notifications
You must be signed in to change notification settings - Fork 79
49 lines (48 loc) · 1.51 KB
/
chart-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 The HuggingFace Authors.
name: chart PR
on:
pull_request:
paths:
- "chart/**"
- ".github/workflows/chart-pr.yml"
jobs:
code-quality-helm:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Update dependencies
run: helm dependencies update
working-directory: chart
- name: Lint chart with default values
run: helm lint
working-directory: chart
- name: Lint chart with staging values
run: helm lint --values env/staging.yaml
working-directory: chart
- name: Lint chart with prod values
run: helm lint --values env/prod.yaml
working-directory: chart
helm-diff:
name: Diff
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update dependencies
run: helm dependencies update
working-directory: chart
- name: Tailscale
uses: tailscale/github-action@main
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
version: ${{ vars.TAILSCALE_CLIENT_VERSION }}
- uses: XciD/argocd-diff-action@master
name: ArgoCD Diff
with:
argocd-server-url: ${{ secrets.ARGO_CD_URL }}
argocd-token: ${{ secrets.ARGO_CD_CI_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
argocd-version: v2.6.1
argocd-extra-cli-args: --grpc-web --loglevel error