First pass at tar plugin.
This commit is contained in:
12
plugins/tar/receive-app
Executable file
12
plugins/tar/receive-app
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$(dirname $0)/../common/functions"
|
||||
|
||||
APP="$1"; REV="$2"
|
||||
|
||||
# Don't trigger tar build if there is no tarball.
|
||||
if [ ! -f "$DOKKU_ROOT/$APP/src.tar" ]; then
|
||||
cat
|
||||
else
|
||||
dokku tar-build $APP
|
||||
fi
|
||||
Reference in New Issue
Block a user