-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: change helm chart releaser to official GH action
- Loading branch information
1 parent
61ded70
commit 5ec3aeb
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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" | ||
|