Skip to content

Commit

Permalink
CI: Refactor helm chart publish action into release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshCasper committed Aug 1, 2022
1 parent f118ffc commit 38aa171
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 53 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/publish-helm-chart.yaml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,48 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

build-publish-helm-chart:
name: Build and publish Helm chart
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Setup the repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v3

- name: Install chart publishing dependencies
run: |
pip install chartpress pyyaml
pip list
helm version
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Configure a git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions user"
- name: Build and publish Helm chart with chartpress
env:
GITHUB_ACTOR: ""
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: resources/helm/tools/build-publish-helm-chart.sh

0 comments on commit 38aa171

Please sign in to comment.