-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (53 loc) · 1.96 KB
/
rc.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
49
50
51
52
53
54
55
56
57
58
59
60
name: Create Pre-release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
env:
CHART_NAME: common
CHART_DIR: "charts/common"
HELM_REPO_BASE_URL: https://activiti.github.io/activiti-cloud-helm-charts
HELM_REPO: Activiti/activiti-cloud-helm-charts
HELM_REPO_NAME: activiti-cloud-helm-charts
HELM_REPO_BRANCH: gh-pages
HELM_REPO_SUBFOLDER: .
jobs:
prerelease:
runs-on: ubuntu-latest
env:
VERSION: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v3
- id: helm-package-chart
name: Package Helm chart
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
chart-dir: ${{ env.CHART_DIR }}
- id: helm-publish-chart
name: Publish Helm chart
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
chart-package: ${{ steps.helm-package-chart.outputs.package-file-path }}
helm-charts-repo: ${{ env.HELM_REPO }}
helm-charts-repo-branch: ${{ env.HELM_REPO_BRANCH }}
helm-charts-repo-subfolder: ${{ env.HELM_REPO_SUBFOLDER }}
helm-charts-repo-base-url: ${{ env.HELM_REPO_BASE_URL }}
token: ${{ secrets.BOT_GITHUB_TOKEN }}
git-username: ${{ secrets.BOT_GITHUB_USERNAME }}
- uses: Activiti/activiti-scripts/.github/actions/wait-for-chart@develop
with:
chart-name: ${{ env.CHART_NAME }}
version: ${{ env.VERSION }}
helm-repo-name: ${{ env.HELM_REPO_NAME }}
helm-repo-url: ${{ env.HELM_REPO_BASE_URL }}
notify:
runs-on: ubuntu-latest
needs:
- prerelease
if: always() && failure() && github.event_name == 'push'
steps:
- name: Slack Notification
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
channel-id: 'eng-hxp-studio-releases-gh-notifs'
token: ${{ secrets.SLACK_NOTIFICATION_BOT_TOKEN }}