Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to fix helm push #584

Merged
merged 6 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: [email protected]

- 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.
Loading