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 8, 2024
1 parent 1aa6868 commit e6c1dcf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ansible/www-standalone/tools/promote/_resha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,21 @@ 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/"}
relative_srcdir=${srcdir/$staging_rootdir/"$site/"}
relative_dstdir=${dstdir/$dist_rootdir/"$site/"}

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

$staging_bucket/$relative_srcdir/${version}/SHASUMS256.txt > /dev/null

0 comments on commit e6c1dcf

Please sign in to comment.