gitea-sonarqube-bot/CONTRIBUTING.md
justusbunsi 51211d77cd
Change internal name
Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2022-07-11 17:39:22 +02:00

2 KiB

Contribution Guidelines

Table of Contents

Setup development environment

# Build docker environment
docker build -t gitea-sonarqube-bot/dev -f contrib/Dockerfile contrib

# Start the environment
docker run --rm -it -p 49182:3000 -v "$(pwd):/projects" gitea-sonarqube-bot/dev

Build and Run

# Build the binary
make build
# Start the server
make run

# or all in once
make build run

Testing

make test
# or
make coverage

Helm Chart

The Parameters section is auto-generated using readme-generator-for-helm. When modifying anything in the helm directory, remember to update the documentation by running

make helm-params

Release

For local purposes

docker build -t gitea-sonarqube-bot/prod .

Docker image

docker build -t justusbunsi/gitea-sonarqube-bot:$TAG .
docker push justusbunsi/gitea-sonarqube-bot:$TAG

Helm Chart

make helm-pack

Use the two files in helm-releases and push them to the charts branch.

Developer Certificate of Origin (DCO)

I consider the act of contributing to the code by submitting a Pull Request as the "Sign off" or agreement to the certifications and terms of the DCO and MIT license. No further action is required. Additionally, you could add a line at the end of your commit message.

Signed-off-by: Joe Smith <joe.smith@email.com>

If you set your user.name and user.email git configs, you can add the line to the end of your commit automatically with git commit -s.

I assume in good faith that the information you provide is legally binding.