Skip to content

Commit 0f26935

Browse files
added fips to the staging script to make sure we don't have cache issues
1 parent 99fede0 commit 0f26935

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

stage_for_s3.bash

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ TIMESTAMP=$(date '+%Y%m%d.%H%M')
1010
echo "Current timestamp is $TIMESTAMP"
1111

1212
# Download packages and move to codez
13-
gh release download -R Asana/node -p "packages_*.gz"
13+
gh release download -R Asana/node node-v22.21.1-release -p "packages_*.gz"
1414
echo "Moving packages to $CODEZ/node/gyp"
1515
mv packages_arm64.tar.gz $CODEZ/node/gyp/packages_arm64_node22.tar.gz
1616
mv packages_x64.tar.gz $CODEZ/node/gyp/packages_amd64_node22.tar.gz
1717

18-
# Download fibers binaries and node tarballs
19-
gh release download -R Asana/node -p "linux-*.gz"
20-
gh release download -R Asana/node -p "*.xz"
18+
# Download fibers binaries and node tarballs (standard build)
19+
gh release download -R Asana/node node-v22.21.1-release -p "linux-*.gz"
20+
gh release download -R Asana/node node-v22.21.1-release -p "*.xz"
21+
22+
# Download FIPS node tarballs
23+
gh release download -R Asana/node node-v22.21.1-fips-release -p "*.xz"
2124

2225
# Download fibers base package via CloudFront (public S3 access was disabled)
2326
curl "https://asana-oss-cache.asana.biz/node-fibers/fibers-5.0.4.pc.tgz" --output fibers-5.0.4.tar.gz
@@ -49,11 +52,12 @@ for file in *.tar.xz; do
4952
echo "Renaming: $file -> $new_name"
5053
mv "$file" "$new_name"
5154

52-
if [[ "$new_name" =~ node-v([0-9.]+)-(darwin|linux)-(arm64|x64).*\.tar\.xz$ ]]; then
55+
if [[ "$new_name" =~ node-v([0-9.]+)-(fips-)?(darwin|linux)-(arm64|x64).*\.tar\.xz$ ]]; then
5356
version="${BASH_REMATCH[1]}"
54-
os="${BASH_REMATCH[2]}"
55-
arch="${BASH_REMATCH[3]}"
56-
target_dir="node-v${version}-${os}-${arch}"
57+
fips="${BASH_REMATCH[2]}"
58+
os="${BASH_REMATCH[3]}"
59+
arch="${BASH_REMATCH[4]}"
60+
target_dir="node-v${version}-${fips}${os}-${arch}"
5761

5862
echo "Target Dir: $target_dir"
5963
mkdir "$target_dir"
@@ -82,3 +86,4 @@ cd ..
8286
mv stage "node-${UNIQUE}"
8387

8488
echo "Files are in node-${UNIQUE}, please upload to s3"
89+
echo "Packages were moved to $CODEZ/node/gyp/packages_{arm64,amd64}_node22.tar.gz"

0 commit comments

Comments
 (0)