Skip to content

Commit

Permalink
build: change helm chart releaser to official GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
clementnuss committed Dec 1, 2021
1 parent 61ded70 commit 5ec3aeb
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ jobs:
with:
go-version: 1.17
stable: true
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.5.0
- name: Login to DockerHub
uses: docker/login-action@v1
with:
Expand All @@ -126,10 +122,18 @@ jobs:
export COMMIT=${{ github.sha}}
export TAG=$(echo ${{ github.ref }} | cut -d "/" -f 3 - )
ko publish ./cmd/kubelet-csr-approver/ --base-import-paths --platform=linux/amd64,linux/arm64,linux/arm --tags $TAG
- name: Publish Helm charts
uses: stefanprodan/helm-gh-pages@master
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v3.5.0
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

publish-untagged:
if: "!startsWith(github.ref, 'refs/tags/v') && !github.event.pull_request.head.repo.fork"
Expand Down

0 comments on commit 5ec3aeb

Please sign in to comment.