From 4b67c28ac0fb1c7f815477d4545846f7dd0ca02c Mon Sep 17 00:00:00 2001 From: Vedant Pareek Date: Thu, 10 Nov 2022 13:39:29 +0530 Subject: [PATCH] Added helm actions --- .github/workflows/docker-image.yml | 6 +++--- .github/workflows/helm-chart.yml | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/helm-chart.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 24db0ad..71ae1e6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,10 +2,10 @@ name: Docker Image CI on: release: - type: [released] + type: [published, created] jobs: - build: + build-and-deploy: runs-on: ubuntu-latest @@ -16,7 +16,7 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push + - name: Build and push docker image uses: docker/build-push-action@v3 with: context: . diff --git a/.github/workflows/helm-chart.yml b/.github/workflows/helm-chart.yml new file mode 100644 index 0000000..5ef4b60 --- /dev/null +++ b/.github/workflows/helm-chart.yml @@ -0,0 +1,19 @@ +name: release-chart +on: + push: + tags: 'chart-*' + +jobs: + release-chart: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Publish Helm chart + uses: stefanprodan/helm-gh-pages@1.6.0 + with: + token: ${{ secrets.HELM_PACKAGE_TOKEN }} + charts_dir: charts + owner: dunefro + branch: gh-pages + commit_username: dunefro + commit_email: dunefro@gmail.com \ No newline at end of file