1
0
mirror of https://github.com/siderolabs/kres.git synced 2026-02-05 09:45:35 +01:00
Andrey Smirnov 6f7b97a2b5 feat: add support for specifying build tags for golangci
This allows to lint parts of the code under a build tag.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
2026-01-15 19:38:30 +04:00
2026-01-08 12:19:35 +05:30
2025-08-14 12:05:16 +02:00
2024-02-08 20:53:13 +03:00
2025-08-14 12:05:16 +02:00
2026-01-08 12:19:35 +05:30
2026-01-08 12:19:35 +05:30
2026-01-08 12:19:35 +05:30
2020-08-11 19:19:09 +03:00
2026-01-08 12:19:35 +05:30

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:

  • Makefile
  • Dockerfile
  • .drone.yaml
  • .dockerignore
  • .gitignore
  • .golangci.yml
  • .markdownlint.json
  • .golangci.yaml
  • .codecov.yml
  • LICENSE

Access Tokens

Kres can leverage API access tokens to set up build environment or settings for the project:

  • GITHUB_TOKEN environment variable should contain GitHub API personal access token with repo scope.

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
Description
Tool to automate build instructions generation
Readme MPL-2.0 3.7 MiB
Languages
Go 92%
Shell 2.7%
Makefile 2.7%
Dockerfile 2.2%
Smarty 0.2%
Other 0.2%