jsonnet-compose/.drone/README.md

20 lines
509 B
Markdown
Raw Permalink Normal View History

2020-07-30 06:05:03 +00:00
# .drone
these files are used to build a yml file to specify the drone build.
To build you need to [install](https://docs.drone.io/cli/install/) drone utility.
```shell
drone jsonnet --source .drone/.drone.jsonnet --target .drone/.drone.yml --stream
```
make a pre commit hook to compile
```shell
2020-07-30 08:02:45 +00:00
echo 'drone jsonnet --source .drone/.drone.jsonnet --target .drone/.drone.yml --stream' > .git/hooks/pre-commit
echo 'git add .drone/.drone.yml' >> .git/hooks/pre-commit
2020-07-30 06:05:03 +00:00
chmod +x .git/hooks/pre-commit
```