Skip to content

Commit

Permalink
fix: make publish chart logic work
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Trieflinger <[email protected]>
  • Loading branch information
strieflin authored Jun 5, 2024
1 parent ac1b511 commit a8a871d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/chart-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
# Copyright (c) 2024 - for information on the respective copyright owner
# see the NOTICE file and/or the repository https://github.com/carbynestack/thymus.
#
# SPDX-License-Identifier: Apache-2.0
#
name: Publish 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: thymus
repository: carbynestack
tag: ${{ env.VERSION }}
path: charts/thymus
registry: ${{ env.REGISTRY }}
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions charts/thymus/.helmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.

.DS_Store

# Common VCS dirs
.git/
.gitignore
Expand All @@ -10,12 +12,14 @@
.hg/
.hgignore
.svn/

# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~

# Various IDEs
.project
.idea/
Expand Down

0 comments on commit a8a871d

Please sign in to comment.