Skip to content

Commit

Permalink
Add rclone step
Browse files Browse the repository at this point in the history
Signed-off-by: bakhtin <[email protected]>
  • Loading branch information
bakhtin committed Oct 3, 2024
1 parent c01b41b commit 2bf3a4c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,40 @@ jobs:
run: |
make azure-image
- name: Install rclone
run: |
curl -fSSL https://downloads.rclone.org/v1.68.1/rclone-v1.68.1-linux-amd64.deb -o rclone.deb
sudo dpkg -i rclone.deb
rm -f rclone.deb
- name: Create test artifact
run: |
echo "test artifact" > /artifacts/cvm-image-azure-tdx.rootfs-20241002143710.wic
ln -s /artifacts/cvm-image-azure-tdx.rootfs-20241002143710.wic /artifacts/cvm-image-azure-tdx.rootfs.wic
- name: Upload build artifacts
env:
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
run:
mkdir -p ~/.config/rclone
echo <<EOF > ~/.config/rclone/rclone.conf
[r2]
type = s3
provider = Cloudflare
env_auth = true
endpoint = ${{ secrets.R2_BUCKET_ENDPOINT }}
region = auto
acl = private
no_check_bucket = true
EOF

rclone copy -v --transfers=2 --s3-upload-concurrency=40 \
--contimeout=10m --retries 10 --retries-sleep 60s --error-on-no-transfer \
--fast-list --checksum --copy-links \
/artifacts/cvm-image-azure-tdx.rootfs.wic \
r2:flashbots-public-artifacts/images/cvm-image-azure-tdx.rootfs.wic

- name: Cache build dependencies
id: cache-build-save
uses: WarpBuilds/cache/save@v1
Expand Down

0 comments on commit 2bf3a4c

Please sign in to comment.