From 069108ea617d91c2c835e0725c7148eef75dc0b9 Mon Sep 17 00:00:00 2001 From: flakey5 <73616808+flakey5@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:21:17 -0700 Subject: [PATCH 1/2] ansible: promote releases to r2 via actions See #3838 Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com> --- .../www-standalone/tools/promote/upload_to_cloudflare.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/www-standalone/tools/promote/upload_to_cloudflare.sh b/ansible/www-standalone/tools/promote/upload_to_cloudflare.sh index d91438b9a..df28303b2 100755 --- a/ansible/www-standalone/tools/promote/upload_to_cloudflare.sh +++ b/ansible/www-standalone/tools/promote/upload_to_cloudflare.sh @@ -42,6 +42,6 @@ fi relativedir=${dstdir/$dist_rootdir/"$site/"} tmpversion=$2 -aws s3 cp $staging_bucket/$relativedir/$tmpversion/ $dist_bucket/$relativedir/$tmpversion/ --endpoint-url=$cloudflare_endpoint --profile $cloudflare_profile --recursive --no-follow-symlinks -aws s3 cp $staging_bucket/$relativedir/index.json $dist_bucket/$relativedir/index.json --endpoint-url=$cloudflare_endpoint --profile $cloudflare_profile -aws s3 cp $staging_bucket/$relativedir/index.tab $dist_bucket/$relativedir/index.tab --endpoint-url=$cloudflare_endpoint --profile $cloudflare_profile +gh workflow run promote-release.yml --repo nodejs/release-cloudflare-worker --field path=$relativedir/$tmpversion/ --field recursive='true' +gh workflow run promote-release.yml --repo nodejs/release-cloudflare-worker --field path=$relativedir/index.json +gh workflow run promote-release.yml --repo nodejs/release-cloudflare-worker --field path=$relativedir/index.tab From 8cefcc783b288cfb63f2150e1d5aa8530645aa71 Mon Sep 17 00:00:00 2001 From: flakey5 <73616808+flakey5@users.noreply.github.com> Date: Mon, 14 Oct 2024 23:23:33 -0700 Subject: [PATCH 2/2] fixup recursive Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com> --- ansible/www-standalone/tools/promote/upload_to_cloudflare.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/www-standalone/tools/promote/upload_to_cloudflare.sh b/ansible/www-standalone/tools/promote/upload_to_cloudflare.sh index df28303b2..34c2a7249 100755 --- a/ansible/www-standalone/tools/promote/upload_to_cloudflare.sh +++ b/ansible/www-standalone/tools/promote/upload_to_cloudflare.sh @@ -42,6 +42,6 @@ fi relativedir=${dstdir/$dist_rootdir/"$site/"} tmpversion=$2 -gh workflow run promote-release.yml --repo nodejs/release-cloudflare-worker --field path=$relativedir/$tmpversion/ --field recursive='true' +gh workflow run promote-release.yml --repo nodejs/release-cloudflare-worker --field path=$relativedir/$tmpversion/ --field recursive=true gh workflow run promote-release.yml --repo nodejs/release-cloudflare-worker --field path=$relativedir/index.json gh workflow run promote-release.yml --repo nodejs/release-cloudflare-worker --field path=$relativedir/index.tab