scratch: initial implementation
This commit is contained in:
17
plugins/builder-lambda/builder-detect
Executable file
17
plugins/builder-lambda/builder-detect
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
source "$PLUGIN_AVAILABLE_PATH/config/functions"
|
||||
set -eo pipefail
|
||||
[[ $DOKKU_TRACE ]] && set -x
|
||||
|
||||
trigger-builder-lambda-builder-detect() {
|
||||
declare desc="builder-lambda builder-detect plugin trigger"
|
||||
declare trigger="builder-detect"
|
||||
declare APP="$1" SOURCECODE_WORK_DIR="$2"
|
||||
|
||||
if [[ -f "$SOURCECODE_WORK_DIR/lambda.yml" ]]; then
|
||||
echo "lambda"
|
||||
return
|
||||
fi
|
||||
}
|
||||
|
||||
trigger-builder-lambda-builder-detect "$@"
|
||||
Reference in New Issue
Block a user