diff --git a/.drone/drone-home.jsonnet b/.drone/drone-home.jsonnet index da58df5..ad4c197 100644 --- a/.drone/drone-home.jsonnet +++ b/.drone/drone-home.jsonnet @@ -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', diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index 8c2e14b..cc28b6e 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -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 diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit new file mode 100755 index 0000000..7161ae2 --- /dev/null +++ b/git-hooks/pre-commit @@ -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" \ No newline at end of file