-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.48 KB
/
releases.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
50
51
52
53
54
55
56
57
58
59
name: ArtifactHub Release Charts
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
permissions:
contents: read
jobs:
# Lint and Test HelmCharts
stage-lint-test:
runs-on: ubuntu-latest
continue-on-error: false
container:
image: artifacthub/ah
options: --user 1001
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Run ah lint
working-directory: ./charts/alucard
run: ah lint
# Release into ArtifactHub
stage-publisher:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$USER_NAME"
git config user.email "$USER_EMAIL"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.USER_TOKEN }}"
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
with:
charts_dir: charts/alucard
config: charts/assets/cr.yaml
env:
CR_TOKEN: "${{ secrets.USER_TOKEN }}"