-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (37 loc) · 1.11 KB
/
chart.publish.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
#
# Copyright (c) 2023 - for information on the respective copyright owner
# see the NOTICE file and/or the repository https://github.com/carbynestack/castor.
#
# SPDX-License-Identifier: Apache-2.0
#
name: Publish Service Chart
on:
push:
tags:
- "chart-v[0-9]+.[0-9]+.[0-9]+"
env:
REGISTRY: ghcr.io
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get version
run: echo "VERSION=${GITHUB_REF#refs/*/chart-v}" >> $GITHUB_ENV
- name: Log in to container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Helm Chart
uses: appany/[email protected]
with:
name: castor
repository: carbynestack
tag: ${{ env.VERSION }}
path: castor-service/charts/castor
registry: ${{ env.REGISTRY }}
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}