Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
djajcevic authored May 24, 2024
1 parent 5ac97b0 commit 2ba4890
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Helm Chart to Quay.io

on:
push:
branches:
- main
tags:
- 'v*'

jobs:
build-and-publish-chart:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Helm
uses: azure/setup-helm@v1
- name: Lint Helm Chart
run: helm lint ./
- name: Package Helm Chart
run: helm package ./ -d ./
- name: Log in to Quay.io
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Push Chart to Quay.io
run: |
export HELM_EXPERIMENTAL_OCI=1
helm chart save ./-*.tgz quay.io/your-username/your-repo:tag
helm chart push quay.io/your-username/your-repo:tag

0 comments on commit 2ba4890

Please sign in to comment.