Skip to content

chore: release operator-chart 0.4.0 (#90) #2

chore: release operator-chart 0.4.0 (#90)

chore: release operator-chart 0.4.0 (#90) #2

#
# Copyright (c) 2023 - for information on the respective copyright owner
# see the NOTICE file and/or the repository https://github.com/carbynestack/klyshko.
#
# SPDX-License-Identifier: Apache-2.0
#
name: Publish Operator Chart
on:
push:
tags:
- "operator-chart-v[0-9]+.[0-9]+.[0-9]+"
env:
REGISTRY: ghcr.io
WORKING_DIRECTORY: klyshko-operator
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get version
run: echo "VERSION=${GITHUB_REF#refs/*/operator-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: klyshko
repository: carbynestack
tag: ${{ env.VERSION }}
path: ${{ env.WORKING_DIRECTORY }}/charts/klyshko
registry: ${{ env.REGISTRY }}
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}