This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (60 loc) · 2.25 KB
/
release.yaml
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
60
61
62
63
64
65
66
67
68
69
70
name: Test and release
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.8.1
- name: Linting
working-directory: helm/sni-router
run: helm lint ./
- name: Template and default values check
working-directory: helm/sni-router
run: helm template ./
release-chart:
runs-on: ubuntu-latest
needs: ["test"]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Publish Helm chart
uses: stefanprodan/helm-gh-pages@master
with:
token: "${{ secrets.GH_RW_TOKEN }}"
charts_dir: helm
charts_url: https://riotkit-org.github.io/helm-of-revolution
owner: riotkit-org
repository: helm-of-revolution
branch: gh-pages
target_dir: ./
commit_username: "${{ env.GITHUB_ACTOR }}"
commit_email: "${{ env.GITHUB_ACTOR }}@users.noreply.github.com"
app_version: "${{github.ref_name}}"
chart_version: "${{github.ref_name}}"
- name: Extract version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Push to ghcr.io
uses: appany/[email protected]
with:
name: sni-router
repository: riotkit-org
tag: "${{ env.RELEASE_VERSION }}"
path: helm/sni-router
registry: ghcr.io
registry_username: __token__
registry_password: ${{ secrets.GITHUB_TOKEN }}