-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.16 KB
/
chart.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
38
39
40
name: Create and publish a Helm Chart
on:
push:
env:
REGISTRY: ghcr.io
CHART_NAMESPACE: greenbids/charts
CHART_NAME: tailor
VERSION: 1.0.0
jobs:
build-and-publish-chart:
runs-on:
- gb-arc-staging
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.CHART_NAMESPACE }}/${{ env.CHART_NAME }}
- name: Helm chart Package and Push
uses: WyriHaximus/github-action-helm3@v4
with:
exec: |
helm package --version ${{ env.VERSION }} --app-version ${{ env.VERSION }} chart/ && \
helm push ${{ env.CHART_NAME }}-${{ env.VERSION }}.tgz oci://${{ env.REGISTRY }}/${{ env.CHART_NAMESPACE }}