-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (23 loc) · 928 Bytes
/
release-artifacts.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
name: Release Helm Artifacts
on:
workflow_dispatch:
env:
HELM_CHART_VERSION: 1.0.3
MATLAB_APP_VERSION: "R2024a"
jobs:
release-helm-chart:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Install Helm
uses: azure/setup-helm@v4
- name: Package the chart
run: helm package releases/${{ env.MATLAB_APP_VERSION }}/matlab-prodserver --version ${{ env.HELM_CHART_VERSION }} --app-version ${{ env.MATLAB_APP_VERSION }}
- name: Login to GitHub Container Registry
run: echo ${{ secrets.CR_TOKEN }} | helm registry login ${{ secrets.MATHWORKS_REGISTRY }} --username ${{ secrets.CR_USER }} --password-stdin
- name: Deploy the chart
run: helm push matlab-prodserver-k8s-${{ env.HELM_CHART_VERSION }}.tgz oci://${{ secrets.MATHWORKS_REGISTRY }}