Remove that hook

This commit is contained in:
Luke Murphy 2020-03-19 02:19:51 +01:00
parent 9966cb99c5
commit 9ae81edebc
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 7 additions and 15 deletions

View File

@ -5,29 +5,30 @@ Run ansible playbooks during deployment.
## Requirements
* dokku 0.19.13+
* Debian based system (uses `apt` package manager)
* [dokku-supply-config](https://github.com/dokku-community/dokku-supply-config)
* Debian based system (uses `apt` package manager for dependencies)
## Installation
```shell
$ dokku plugin:install https://github.com/josegonzalez/dokku-supply-config.git
$ dokku plugin:install https://github.com/decentral1se/dokku-ansible-playbook.git
```
## Usage
All files must be placed within the `.ansible` folder of your git repository.
All files must be placed within the `.dokku/ansible` folder of your git repository.
* `requirements.yml`: what role dependencies to download before running your plays.
The following hooks are supported (add `.yml` to the hook name in `.ansible`):
The following hooks are supported (add `.yml` to the hook name in `.dokku/ansible`):
* `pre-deploy`
* `post-deploy`
* `create-app`
## Example
### .ansible/requirements.yml
### .dokku/ansible/requirements.yml
```yaml
---
@ -35,7 +36,7 @@ The following hooks are supported (add `.yml` to the hook name in `.ansible`):
version: v2020.3.15
```
### .ansible/create-app.yml
### .dokku/ansible/pre-deploy.yml
```yaml
---

View File

@ -1,9 +0,0 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
PLAYBBOOK=".ansible/create-app.yml"
echo "-----> Running create-app ansible playbook"
. $(dirname "$0")/functions
run_playbook "$PLAYBOOK"