fix: create the data directory for an app as necessary
This commit is contained in:
1 parent
a71e4219be
commit
2959fdd154
1 file changed
+2
-1
@@ -28,7 +28,8 @@ trigger-builder-lambda-builder-build() {
|
||||
fi
|
||||
|
||||
local GIT_REV="$(plugn trigger git-revision "$APP")"
|
||||
pusd "${DOKKU_LIB_ROOT}/data/builder-lambda/$APP" >/dev/null
|
||||
mkdir -p "${DOKKU_LIB_ROOT}/data/builder-lambda/$APP"
|
||||
pushd "${DOKKU_LIB_ROOT}/data/builder-lambda/$APP" >/dev/null
|
||||
rm -f -- *.zip
|
||||
popd &>/dev/null || pushd "/tmp" >/dev/null
|
||||
cp "$SOURCECODE_WORK_DIR/lambda.zip" "${DOKKU_LIB_ROOT}/data/builder-lambda/$APP/$GIT_REV.zip"
|
||||
|
||||
Reference in new issue
Block a user