- Add valuesFiles option to HelmTemplate config for passing additional values files to helm template command
- Remove redundant -f values.yaml flag from helm template (chart's default values.yaml is used automatically)
- Remove --template-files flag with typo from helm-docs (default README.md.gotmpl is correct)
- Add buildx setup step to helm workflow to fix CI hang (was missing remote buildkit driver)
- Extract SetupBuildxStep() to avoid code duplication
- Add test helm chart to validate helm CI flow
- Fix the workdir of helm-docs
Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
Just removing helm docs step is not enough to stop enforcement of helm doc generation. Add schema generation and check dirty steps as well for full coverage.
Signed-off-by: Oguz Kilcan <oguz.kilcan@siderolabs.com>
Add configuration setting `docsDisabled` to `auto.Helm` kres definition to disable creation of helm docs on GitHub Workflows.
Normally creation of helm docs step goes hand in hand with `Check dirty` step to ensure helm docs were created beforehand. However, there is an issue with this step, causing CI to hang.
Signed-off-by: Oguz Kilcan <oguz.kilcan@siderolabs.com>
Previously helm tools were added to base. This splits them
into separate stage, with proper separation.
Signed-off-by: Mateusz Urbanek <mateusz.urbanek@siderolabs.com>
Extend helm support for running unit tests, and
passing extra arguments for templating.
Signed-off-by: Mateusz Urbanek <mateusz.urbanek@siderolabs.com>
On github action workflows:
* Allow skipping default step `save-artifacts` while respecting `additionalArtifacts`.
* Allow using custom make targets instead of using specified makefile target.
Signed-off-by: Oguz Kilcan <oguz.kilcan@siderolabs.com>
Copy the the frontend e2e folder to the docker container so that it is also checked with linters
Signed-off-by: Edward Sammut Alessi <edward.sammutalessi@siderolabs.com>
Refactor make variables for build tags to allow multiple tags to be
enabled in the Makefile.
Allow custom build tags to be defined with respective make variables.
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This patch changes the default value of
`common.Repository.ConformMaximumOfOneCommit` from `false` to `true`.
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
By setting a default as `scratch` we silence the docker annoying warnings, this also ensures that an override is set from makefile.
Signed-off-by: Noel Georgi <git@frezbo.dev>
Using `needsOverride`, we can now define a custom dependency graph in the gh workflow jobs of custom steps.
An example: an integration test takes a long time, occupies a build runner: do not run them in parallel with `unit-tests` and `lint`, and make it depend on them instead.
Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
Allow defining GH Action Workflow jobs as dispatchable
meaning they will run only on a workflow_dispatch event.
Signed-off-by: Mateusz Urbanek <mateusz.urbanek@siderolabs.com>
Support `workflow_dispatch` trigger for GitHub actions.
Allow overriding `on` for custom jobs.
Also bump dependencies.
Signed-off-by: Noel Georgi <git@frezbo.dev>
It might be that we create the target, but never consume it.
Ensure that the context is only enforced if lint is active.
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Use runner groups for GitHub action to work with GHA runner scale sets.
Support `string`, `array` and `object` types for `runs-on` github action workflow syntax.
Signed-off-by: Noel Georgi <git@frezbo.dev>
Previously it was attached to the `base`, so it got into steps like
`golangci-lint` which don't care about it, but also it gets exported
back to the source tree via `make lint-golangci-lint-fmt`.
Re-attach it to the build step (where we actually need it).
Another solution is to make it part of `make generate` and keep it part
of the source tree.
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Extend remote URL regex to handle generic git hosts, not only github.com.
Now DetectGit works for any host with a standard URL format,
while still restricting config generation to GitHub repos when required.
Signed-off-by: Misha Chichvarin <desertfury@gmail.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>