Skip to content

Commit 23ac254

Browse files
committed
feat(wip): extract node_modules from docker
1 parent 140a5d3 commit 23ac254

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
parameters:
2+
image_repo:
3+
description: The container image repository
4+
type: string
5+
platform:
6+
description: Platform to build against
7+
type: enum
8+
default: "linux/amd64"
9+
enum: ["linux/amd64", "linux/arm64"]
10+
node_version:
11+
description: Node version
12+
type: string
13+
steps:
14+
- staged_buildx:
15+
name: "Extract node_modules from docker image"
16+
image_repo: << parameters.image_repo >>
17+
target: node_modules
18+
platforms: << parameters.platform >>
19+
output: type=local,dest=./node_modules
20+
extra_build_args: NODE_VERSION=<< parameters.node_version >>

0 commit comments

Comments
 (0)