File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ builder-bot:
49
49
docker build -f Dockerfile . -t swift-builder
50
50
51
51
# prep directories
52
+ rm -rf $($@ARTIFACTS_DIR)
52
53
mkdir -p $($@BUILD_DIR)/lambda $($@ARTIFACTS_DIR)
53
54
54
55
# compile application inside Docker image using source code from local project folder
@@ -58,8 +59,9 @@ builder-bot:
58
59
# create lambda bootstrap file
59
60
docker run --rm -v $($@BUILD_DIR):/build-target -v `pwd`:/build-src -w /build-src swift-builder bash -cl "cd /build-target/lambda && ln -s $($@PRODUCT) /bootstrap"
60
61
61
- # copy binary to stage
62
- cp $($@BUILD_DIR)/release/$($@PRODUCT) $($@STAGE)/bootstrap
63
-
64
- # copy app from stage to artifacts dir
65
- cp $($@STAGE)/* $($@ARTIFACTS_DIR)
62
+ # copy binary to artifacts dir
63
+ cp $($@BUILD_DIR)/release/$($@PRODUCT) $($@ARTIFACTS_DIR)/bootstrap
64
+
65
+ # copy resources to artifacts dir
66
+ [ -d "$($@BUILD_DIR)/release/$($@PRODUCT)_$($@PRODUCT).resources" ] && cp $($@BUILD_DIR)/release/$($@PRODUCT)_$($@PRODUCT).resources/* $($@ARTIFACTS_DIR) || true
67
+
You can’t perform that action at this time.
0 commit comments