Skip to content

Commit 4d82835

Browse files
authored
feat: Enabling multi-arch (#738)
1 parent 791ebf3 commit 4d82835

2 files changed

Lines changed: 25 additions & 4 deletions

File tree

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
.DS_Store
2+
.idea
13
/.bin
2-
/.build
3-
/bin
44
/build
5+
/bin
6+
/linux
7+
/darwin
8+
/windows

buildpack.toml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,25 @@ api = "0.7"
1010
uri = "https://github.com/paketo-buildpacks/yarn-start/blob/main/LICENSE"
1111

1212
[metadata]
13-
include-files = ["bin/run", "bin/build", "bin/detect", "buildpack.toml"]
14-
pre-package = "./scripts/build.sh"
13+
include-files = [
14+
"buildpack.toml",
15+
"linux/amd64/bin/build",
16+
"linux/amd64/bin/detect",
17+
"linux/amd64/bin/run",
18+
"linux/arm64/bin/build",
19+
"linux/arm64/bin/detect",
20+
"linux/arm64/bin/run",
21+
]
22+
23+
pre-package = "./scripts/build.sh --target linux/amd64 --target linux/arm64"
1524

1625
[[stacks]]
1726
id = "*"
27+
28+
[[targets]]
29+
os = "linux"
30+
arch = "amd64"
31+
32+
[[targets]]
33+
os = "linux"
34+
arch = "arm64"

0 commit comments

Comments
 (0)