forked from wundergraph/cosmo
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.52 KB
/
helm-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
---
name: Helm Release
run-name: helm-release
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
packages: write
env:
CI: true
REGISTRY: ghcr.io
RELEASE_BRANCH: main
jobs:
build_test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: checkout
uses: actions/checkout@v4
- uses: googleapis/release-please-action@v4
id: release
with:
# https://github.com/googleapis/release-please-action/issues/741
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
target-branch: ${{ env.RELEASE_BRANCH }}
token: ${{ secrets.GH_TOKEN_HELM_RELEASES }}
skip-github-release: false
skip-github-pull-request: false
- uses: ./.github/actions/helm-release
if: ${{ steps.release.outputs['helm/cosmo--release_created'] }}
with:
working-directory: ./helm
registry: ${{ env.REGISTRY }}
registry-username: ${{ github.actor }}
registry-password: ${{ secrets.GITHUB_TOKEN }}
make-target: publish-cosmo-chart
- uses: ./.github/actions/helm-release
if: ${{ steps.release.outputs['helm/cosmo/charts/router--release_created'] }}
with:
working-directory: ./helm
registry: ${{ env.REGISTRY }}
registry-username: ${{ github.actor }}
registry-password: ${{ secrets.GITHUB_TOKEN }}
make-target: publish-router-chart