fix: create the data directory for an app as necessary

This commit is contained in:
Jose Diaz-Gonzalez
2022-08-09 02:11:48 -04:00
parent a71e4219be
commit 2959fdd154

View File

@@ -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"