You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add multi-arch support to yarn buildpack: update publish.sh, package.sh, build.sh to read targets from buildpack.toml, add yj support, and update README with packaging/publishing instructions
Copy file name to clipboardExpand all lines: README.md
+28-3Lines changed: 28 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,14 +46,16 @@ file that looks like the following:
46
46
launch = true
47
47
```
48
48
49
-
## Usage
49
+
## Packaging
50
50
51
51
To package this buildpack for consumption:
52
52
53
-
```shell
54
-
$ ./scripts/package.sh --version <version-number>
53
+
```bash
54
+
./scripts/package.sh --version 2.2.6
55
55
```
56
56
57
+
This will build the buildpack for all target architectures specified in `buildpack.toml` (amd64 and arm64 by default) and create a single archive containing binaries for all architectures in the `build/` directory.
58
+
57
59
This will create a `buildpackage.cnb` file under the `build` directory which you
58
60
can use to build your app as follows:
59
61
```shell
@@ -66,6 +68,29 @@ pack build <app-name> \
66
68
67
69
Though the API of this buildpack does not require `node`, yarn is unusable without node.
68
70
71
+
## Publishing
72
+
73
+
To publish this buildpack to ECR:
74
+
75
+
```bash
76
+
# First, authenticate with ECR (if not already authenticated)
--version <version> -v <version> specifies the version number to use when packaging a buildpack or an extension
96
116
--output <output> -o <output> location to output the packaged buildpackage or extension artifact (default: ${ROOT_DIR}/build/buildpackage.cnb)
97
117
--token <token> Token used to download assets from GitHub (e.g. jam, pack, etc) (optional)
98
-
--target <target> Target platform (e.g. linux/amd64). Can be specified multiple times for multi-arch (optional)
118
+
--target <target> Target platform (e.g. linux/amd64). Can be specified multiple times for multi-arch (optional). If not provided, targets will be read from buildpack.toml
0 commit comments