Comments (14)
Thanks for reporting. I'll look into it. From what I've seen, Helm needs to be installed in the first place. This is an oversight because initial testing of the set of actions happened in one workflow and Helm was already there in that case.
from chart-releaser-action.
Ah - got it to work for testing - had forgotten to pass the config to the action.
from chart-releaser-action.
I looked into this. Installing Helm alone doesn't really solve this. We would also have to add chart repos for the dependencies. The question is whether this should be part of the chart-releaser action. It may be better to provide a separate action that installs Helm. That could be generally useful anyways. It probably would then look like this:
name: release
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure Git
run: |
echo "GITHUB_ACTOR: $GITHUB_ACTOR"
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: helm/[email protected]
- name: Add Helm repos
run: |
helm repo add foo https://foo.helm.example.com
helm repo add bar https://bar.helm.example.com
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.CR_TOKEN }}"
from chart-releaser-action.
Same for the chart-testing-action.
In the old action I used (a non-helm one) repos were added by defining them in the ct-config - maybe that could be done here too?: https://github.com/evryfs/helm-charts/blob/feature/mcrouter-bitnami-memcached/ct-config.yaml && evryfs/helm-charts@82799da
from chart-releaser-action.
Yep that works perfectly for the chart-testing-action 👍 It's a little more of a pain for chart-releaser-action, but it also works. Here's a test in the demo repo. WDYT? helm/charts-repo-actions-demo#7
from chart-releaser-action.
I think the old action I used where only configuration of ct-config.yaml
was needed was more elegant - then you don't need to mess around with helm-download and configuration.
from chart-releaser-action.
The other one seems to automate dependency update
: https://github.com/J12934/helm-gh-pages-action/blob/master/index.js#L68
from chart-releaser-action.
@davidkarlsen do you feel good about closing this issue? Or maybe we should clearly document this somewhere before closing
from chart-releaser-action.
Mmmm, it was never fixed? Chart-testing works as it seems to read the config-file. But last time I tested the releaser it failed.
from chart-releaser-action.
The releaser still fails with dependencies while my config file is in the repo: https://github.com/newrelic/helm-charts/runs/713817996
from chart-releaser-action.
There is a GitHub action to install helm https://github.com/Azure/setup-helm
from chart-releaser-action.
At a minimum it would be good if the docs were updated to explain how to handle charts with dependencies. I'm just experimenting with this action in https://github.com/odpi/egeria/issues/1514 and found the same issue ie, when I had my released charts posted to my new pages (nice thanks!):
$ helm install lab odpi-egeria-lab [11:06:57]
Error: found in Chart.yaml, but missing in charts/ directory: kafka
I got the same issue for an older chart (requirements.yaml) and newer (dependencies in Chart.yaml) - I'll look at the fragment above & aim to automate the repo add (and presumably dependency update)
from chart-releaser-action.
Apologies - user error. I had been using local paths rather than referring to my new repo. Dependencies now do seem to be handled correctly
from chart-releaser-action.
This works now, so closing.
from chart-releaser-action.
Related Issues (20)
- cr index does not remove old releases that no longer exist. HOT 1
- Add flag package-with-index HOT 4
- Support actions triggered by a tag not working HOT 3
- README example uses v1.6.0 but that doesn't exist HOT 3
- How to use this action with Googl's "release-please" HOT 1
- Skip_existing not seen as a valid input HOT 2
- Error creating Github release 404 Not Found HOT 1
- Question: Only create helm chart and publish it without creating a release? HOT 2
- Unexpected input(s) 'packages_with_index', HOT 1
- cr.sh: line 109: latest_tag: unbound variable HOT 8
- Are generated Helm Charts possible?
- Nothing to do. No chart changes detected.
- GitHub Actions Failure: Helm Chart Release Process Encounters Non-Fast-Forward Push Error and cr upload Exit Status 1 HOT 3
- Is there any way to customize pages-index-path and index-path? HOT 2
- Request for new release with the changes in #143 HOT 1
- Worflow is not triggered by new tag
- skip_upload flag is not in the latest release HOT 1
- Release created, index.yaml not updated.
- Allow releasing to a different repository
- Multiple helm charts are not supported HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chart-releaser-action.