10
0

Initial commit
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Lauri Võsandi 2022-08-03 13:53:51 +03:00
commit 08f7f6133a
4 changed files with 46 additions and 0 deletions

16
.drone.yml Normal file
View File

@ -0,0 +1,16 @@
kind: pipeline
type: kubernetes
name: default
steps:
- name: docker
image: plugins/docker
settings:
repo: harbor.k-space.ee/${DRONE_REPO}
registry: harbor.k-space.ee
mtu: 1300
storage_driver: vfs
username:
from_secret: docker_username
password:
from_secret: docker_password

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM python:3-alpine
RUN apk add git
RUN pip install gitlint
ADD gitlint.ini /config/gitlint.ini
WORKDIR /apps
ENTRYPOINT ["gitlint", "--config", "/config/gitlint.ini"]

9
README.md Normal file
View File

@ -0,0 +1,9 @@
# gitlint bundle
This is what we use in the CI/CD pipelines, to run locally use:
```
docker run -it --rm --user $UID -v $PWD:/apps harbor.k-space.ee/k-space/gitlint-bundle
```
General tips on how to format commit messages https://github.com/knowbl/git-commit-message#the-seven-rules

15
gitlint.ini Normal file
View File

@ -0,0 +1,15 @@
[general]
ignore=body-is-missing
ignore-stdin=true
[title-match-regex]
# Commit title is a sentence and it starts with capital letter
regex=[A-Z]
[author-valid-email]
# Must use username@k-space.ee for commits
regex=[^@]+@k-space.ee
[title-must-not-contain-word]
# Use imperative mood for commit title
words=adding,added,enabling,enabled,disabling,disabled,updating,updated,bumping,bumped,making,refactoring,refactored,starting,started