forked from sentry-kubernetes/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.41 KB
/
push.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
name: Build and push Chart
on:
push:
branches:
- 'stable'
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Determine version
id: semver
uses: ietf-tools/semver-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: stable
- uses: azure/setup-helm@v4.2.0
- name: Build Clickhouse chart
run: helm package charts/clickhouse --version ${{ steps.semver.outputs.next }}
- name: Build Sentry-Kubernetes chart
run: helm package charts/sentry-kubernetes --version ${{ steps.semver.outputs.next }}
- name: Build Sentry chart
run: helm package charts/sentry -u --version ${{ steps.semver.outputs.next }}
- name: Login into registry
env:
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: printf "%s" "$REGISTRY_PASSWORD" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push Sentry chart
run: helm push sentry-${{ steps.semver.outputs.next }}.tgz oci://ghcr.io/kpn
- name: Tag this commit
uses: actions/github-script@v7
with:
script: |
await github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ steps.semver.outputs.next }}',
sha: context.sha
})