feat: add a trigger to fetch the git revision

This allows other plugins to fetch the current git revision without needing to duplicate logic from the git plugin.

Closes #3484
This commit is contained in:
Jose Diaz-Gonzalez
2019-04-17 03:41:16 -04:00
parent 3ec67073ce
commit 9a447c16f2
2 changed files with 38 additions and 0 deletions

View File

@@ -381,6 +381,21 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
since it does not get called for commands that use `git-upload-archive` such
as `git archive`. Instead, use the [`user-auth`](#user-auth) trigger.
### `git-revision`
- Description: Allows you to fetch the current git revision for a given application
- Invoked by:
- Arguments: `$APP`
- Example:
```shell
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
# TODO
```
### `install`
- Description: Used to setup any files/configuration for a plugin.