Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: use rclone instead of aws CLI #3945

Merged
merged 1 commit into from
Nov 1, 2024
Merged

ansible: use rclone instead of aws CLI #3945

merged 1 commit into from
Nov 1, 2024

Conversation

targos
Copy link
Member

@targos targos commented Oct 31, 2024

Use rclone to upload assets to Cloudflare as it is more reliable.

Refs: #3508

Use rclone to upload assets to Cloudflare as it is more reliable.

Refs: nodejs#3508
@targos
Copy link
Member Author

targos commented Oct 31, 2024

/cc @nodejs/build-infra @flakey5 @ovflowd

This is what I did manually on the server:

  • Uninstall old version (used for testing yesterday) with apt remove rclone
  • Follow the rclone docs to install the latest version globally:
Fetch and unpack

    curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
    unzip rclone-current-linux-amd64.zip
    cd rclone-*-linux-amd64

Copy binary file

    sudo cp rclone /usr/bin/
    sudo chown root:root /usr/bin/rclone
    sudo chmod 755 /usr/bin/rclone

Install manpage

    sudo mkdir -p /usr/local/share/man/man1
    sudo cp rclone.1 /usr/local/share/man/man1/
    sudo mandb

Make sure that the config file (which includes credentials) exists for both the dist and staging users (in /home/$username/.config/rclone/rclone.conf).

@targos targos merged commit 8fc01e0 into nodejs:main Nov 1, 2024
2 checks passed
@targos targos deleted the rclone branch November 1, 2024 08:06
@targos
Copy link
Member Author

targos commented Nov 1, 2024

Deployed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants