-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (41 loc) · 1.27 KB
/
CI_CD_Helm.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: "[CI/CD] Helm"
on:
push:
branches: ['main']
paths:
- 'helm/**'
env:
REGISTRY: ghcr.io
OCI_CHART_NAME: texano00/urunner/helm
jobs:
build-and-push-image:
if: ${{ !contains(github.event.head_commit.message, '#skip-actions') }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
defaults:
run:
working-directory: helm/urunner
environment: production
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Helm lint
run: |
helm lint
- name: Helm lint
run: |
helm lint
- name: Helm pack and push
run: |
helm package .
helm registry login ${{ env.REGISTRY }} -u ${{ secrets.GHCR_USERNAME }} -p ${{ secrets.GHCR_PASSWORD }}
helm push *.tgz oci://${{ env.REGISTRY }}/${{ env.OCI_CHART_NAME }}