Skip to content

Commit

Permalink
Attempt to fix helm push (#584)
Browse files Browse the repository at this point in the history
* Attempt to fix helm push

* Attempt to fix helm push

* update lint

* fix

* fix deletion

* change linter to latest
  • Loading branch information
MuneebAijaz authored Dec 8, 2023
1 parent 914223a commit d43679b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.1
version: latest
only-new-issues: false
args: --timeout 10m

Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.8.2
version: v3.11.3

- name: Set up Go
uses: actions/setup-go@v4
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.1
version: latest
only-new-issues: false
args: --timeout 10m

Expand Down Expand Up @@ -206,7 +206,17 @@ jobs:
helm template reloader deployments/kubernetes/chart/reloader/ --output-dir deployments/kubernetes/manifests && mv deployments/kubernetes/manifests/reloader/templates/* deployments/kubernetes/manifests/ && rm -r deployments/kubernetes/manifests/reloader
# Publish helm chart
- name: Publish Helm chart
- name: Login to ghcr via helm
run: |
echo ${{secrets.GITHUB_TOKEN}} | helm registry login ghcr.io/stakater --username stakater-user --password-stdin
- name: Publish Helm chart to ghcr.io
run: |
helm package ./charts/* --destination ./packaged-chart
helm push ./packaged-chart/*.tgz oci://ghcr.io/stakater/charts
rm -rf ./packaged-chart
- name: Publish Helm chart to gh-pages
uses: stefanprodan/helm-gh-pages@master
with:
branch: master
Expand All @@ -220,10 +230,6 @@ jobs:
commit_username: stakater-user
commit_email: stakater@gmail.com

- name: Publish Helm chart to ghcr.io
run: |
helm package deployments/kubernetes/chart/reloader/
helm push reloader-*.tgz oci://ghcr.io/stakater/charts

# Commit back changes
- name: Log info about `.git` directory permissions
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ _gopath/
vendor
dist
Reloader
!**/chart/reloader
!**/chart/reloader
*.tgz
Binary file removed reloader-1.0.51.tgz
Binary file not shown.

0 comments on commit d43679b

Please sign in to comment.