-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (42 loc) · 1.4 KB
/
release.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
name: Release Charts
on:
push:
branches:
- main
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-22.04
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 "${{ github.actor }}@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare keys for signing
env:
SIGNING_KEY_BASE64: ${{ secrets.HELM_SIGNING_PRIVATE_KEY }}
SIGNING_KEY_PASSPHRASE_BASE64: ${{ secrets.HELM_SIGNING_PRIVATE_KEY_PASSPHRASE }}
KEY_PATH: ".gpg-dir"
SIGNING_KEY_PATH: ".gpg-dir/secring.gpg"
SIGNING_KEY_PASSPHRASE_PATH: ".gpg-dir/passphrase"
run: |
mkdir "$KEY_PATH"
base64 -d <<< "$SIGNING_KEY_BASE64" > "$SIGNING_KEY_PATH"
base64 -d <<< "$SIGNING_KEY_PASSPHRASE_BASE64" > "$SIGNING_KEY_PASSPHRASE_PATH"
echo "CR_PASSPHRASE_FILE=$SIGNING_KEY_PASSPHRASE_PATH" >> "$GITHUB_ENV"
echo "CR_KEYRING=$SIGNING_KEY_PATH" >> "$GITHUB_ENV"
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: ${{ secrets.KEPTN_BOT_TOKEN }}
with:
config: cr.yaml