This commit is contained in:
commit
08f7f6133a
16
.drone.yml
Normal file
16
.drone.yml
Normal 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
6
Dockerfile
Normal 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
9
README.md
Normal 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
15
gitlint.ini
Normal 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
|
Loading…
Reference in New Issue
Block a user