Skip to content

Commit

Permalink
ansible: fix v8-canary SHASUMS256.txt
Browse files Browse the repository at this point in the history
Shasums for v8-canary builds were being uploaded to
`nodejs/v8-canary/...` path in the `dist-staging` bucket instead of the
`nodejs/custom/...` path

Signed-off-by: flakey5 <[email protected]>
  • Loading branch information
flakey5 committed Nov 7, 2024
1 parent 478a534 commit 3c9cea9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ansible/www-standalone/tools/promote/_resha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ nodejs-dist-indexer --dist $dstdir --indexjson ${dstdir}/index.json --indextab
find "${dstdir}/${version}" -type f -exec chmod 644 '{}' \;
find "${dstdir}/${version}" -type d -exec chmod 755 '{}' \;

relativedir=${dstdir/$dist_rootdir/"$site/"}
rclone copyto ${dstdir}/index.json $staging_bucket/$relativedir/index.json > /dev/null
rclone copyto ${dstdir}/index.tab $staging_bucket/$relativedir/index.tab > /dev/null
rclone copyto ${dstdir}/${version}/SHASUMS256.txt $staging_bucket/$relativedir/${version}/SHASUMS256.txt > /dev/null
relative_srcdir=${srcdir/$staging_rootdir/"$site/"}
relative_dstdir=${dstdir/$dist_rootdir/"$site/"}

rclone copyto --log-file=${rclone_log} ${dstdir}/index.json $staging_bucket/$relative_dstdir/index.json > /dev/null
rclone copyto --log-file=${rclone_log} ${dstdir}/index.tab $staging_bucket/$relative_dstdir/index.tab > /dev/null
rclone copyto --log-file=${rclone_log} ${dstdir}/${version}/SHASUMS256.txt $staging_bucket/$relative_srcdir/${version}/SHASUMS256.txt > /dev/null

0 comments on commit 3c9cea9

Please sign in to comment.