fix: create the data directory for an app as necessary

This commit is contained in:
Jose Diaz-Gonzalez committed 2022-08-09 02:11:48 -04:00
1 parent a71e4219be
commit 2959fdd154
1 file changed
+2 -1
+2 -1
View File
@@ -28,7 +28,8 @@ trigger-builder-lambda-builder-build() {
fi fi
local GIT_REV="$(plugn trigger git-revision "$APP")" 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 rm -f -- *.zip
popd &>/dev/null || pushd "/tmp" >/dev/null popd &>/dev/null || pushd "/tmp" >/dev/null
cp "$SOURCECODE_WORK_DIR/lambda.zip" "${DOKKU_LIB_ROOT}/data/builder-lambda/$APP/$GIT_REV.zip" cp "$SOURCECODE_WORK_DIR/lambda.zip" "${DOKKU_LIB_ROOT}/data/builder-lambda/$APP/$GIT_REV.zip"