-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 912 Bytes
/
helm.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
# https://github.com/bsord/helm-push
# https://docs.github.com/en/actions/learn-github-actions/contexts
name: helm
permissions:
packages: write
contents: read
on:
push:
branches:
- main
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: version
run: |
VERSION=$( echo "${{ github.event.repository.updated_at}}" | tr -d 'TZ:-' )
VERSION="${VERSION:2:6}.${VERSION:8:4}.0"
echo "VERSION:$VERSION"
sed -i -e "s/__VERSION__/$VERSION/g" helm/Chart.yaml
cat helm/Chart.yaml
- name: push
uses: bsord/helm-push@v4
with:
useOCIRegistry: true
registry-url: oci://ghcr.io/${{ github.repository }}
username: ${{ github.repository_owner }}
access-token: ${{ secrets.GITHUB_TOKEN }}
force: true
chart-folder: helm