ci: git-hooks in project

This commit is contained in:
Giles Bradshaw 2020-08-12 14:09:38 +01:00
commit edc6b29404
3 changed files with 3 additions and 2 deletions

View File

@ -82,7 +82,6 @@ local util = import 'lib/util.libsonnet';
],
commands: [
'set -e',
'sleep 15',
'docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}"',
'cd docker-dind',
'echo "$${CA_CRT}" > CA_crt.crt',

View File

@ -74,7 +74,6 @@ steps:
image: docker:dind
commands:
- set -e
- sleep 15
- docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${LOCAL_REGISTRY_PASSWORD}"
- cd docker-dind
- echo "$${CA_CRT}" > CA_crt.crt

3
git-hooks/pre-commit Executable file
View File

@ -0,0 +1,3 @@
drone jsonnet --source .drone/drone-home.jsonnet --target .drone/drone-home.yml --stream \
&& git add .drone/drone-home.yml \
&& echo "jsonnet built"