mirror of
https://github.com/siderolabs/kres.git
synced 2026-02-05 09:45:35 +01:00
ba566731c8b929dd4dcf3611032c8417847c715e
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>
Kres
Kres is a tool to automate generation of build instructions based on project structure.
At the moment only Go projects are supported. Kres is opinionated, that's by design.
Following output files are generated automatically:
MakefileDockerfile.drone.yaml.dockerignore.gitignore.golangci.yml.markdownlint.json.golangci.yaml.codecov.ymlLICENSE
Access Tokens
Kres can leverage API access tokens to set up build environment or settings for the project:
GITHUB_TOKENenvironment variable should contain GitHub API personal access token withreposcope.
Running Kres
When running Kres for the first time, run it manually via Docker container:
docker run --rm -v ${PWD}:/src -w /src -e GITHUB_TOKEN ghcr.io/siderolabs/kres:latest
To update build instructions:
make rekres
Languages
Go
92%
Shell
2.7%
Makefile
2.7%
Dockerfile
2.2%
Smarty
0.2%
Other
0.2%