-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: add reusable workflow for Helm Chart #108
base: main
Are you sure you want to change the base?
Conversation
e9fde3a
to
2f34e6c
Compare
Waiting that PE team sets CHARTMUSEUM variables at org. level to simplify it. |
.github/workflows/_reusable_helm.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My 2 cts: given this is a repository containing only reusable actions and workflows, maybe the reusable_
prefix is a bit redundant (in addition to creating very long workflows name) and maybe _helm.yml
is enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to separate reusable workflows from the "workflow of the repository".
GitHub is again very limited on that, there are many complaints about it, maybe it'll change in the future.
I'm fine with "_".
or maybe creating another repo just with reusable workflows ?
.github/workflows/_reusable_helm.yml
Outdated
lint-chart: | ||
runs-on: [self-hosted, shared] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
- name: Run chart-testing (lint) | ||
run: ct lint --config .github/ct.yaml --check-version-increment=false | ||
|
||
lint-docs: | ||
runs-on: [self-hosted, shared] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run helm-docs | ||
env: | ||
HELM_DOCS_VERSION: "1.11.0" | ||
HELM_DOCS_BASE_URL: "https://github.com/norwoodj/helm-docs/releases/download" | ||
run: | | ||
OS=$(uname) | ||
# install helm-docs | ||
curl -sSfL "${HELM_DOCS_BASE_URL}/v${HELM_DOCS_VERSION}/helm-docs_${HELM_DOCS_VERSION}_${OS}_x86_64.tar.gz" | | ||
tar -xzf - helm-docs | ||
# validate docs | ||
./helm-docs | ||
git diff --exit-code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think those 2 should move to pre-commit
, it would avoid waiting for CI to discover issues while it could have been discovered on commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, it could be an interesting action for the future ✅ but for the current stream, it would be very heavy tasks to setup git hooks for every projects.
Hello, I have similar remark |
The problem with Action is that it is very limited, and doesn't support property secrets injections. It is one of the reasons that I decided to use reusable workflow. |
a5e3af9
to
135d89a
Compare
135d89a
to
a550e97
Compare
40729be
to
fd20fce
Compare
fd20fce
to
01e4371
Compare
5312a42
to
43181a9
Compare
43181a9
to
e66d8ec
Compare
166f2ce
to
03f1d59
Compare
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Push chart to chartmuseum-prd repo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chartmuseum-dev
No description provided.