Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/commands/docker/extract_node_modules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
parameters:
image_repo:
description: The container image repository
type: string
platform:
description: Platform to build against
type: enum
default: "linux/amd64"
enum: ["linux/amd64", "linux/arm64"]
node_version:
description: Node version
type: string
steps:
- staged_buildx:
image_repo: << parameters.image_repo >>
target: node_modules
platforms: << parameters.platform >>
output: type=local,dest=./node_modules
extra_build_args: NODE_VERSION=<< parameters.node_version >>
4 changes: 2 additions & 2 deletions src/scripts/yarn/create_lock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Create the folder if not exists
[ ! -d /tmp/lock ] && mkdir -p /tmp/lock

LOCK_FILE="/tmp/lock/$(uuidgen)"
LOCK_FILE="$(mktemp -t -p /tmp/lock)"

touch "$LOCK_FILE"
echo "Lock created at $LOCK_FILE"
echo "export LOCK_FILE=$LOCK_FILE" >> "$BASH_ENV"
echo "export LOCK_FILE=$LOCK_FILE" >>"$BASH_ENV"