From 64943040975f47ae21f240fbc4c39378bdd34b4c Mon Sep 17 00:00:00 2001 From: bakhtin Date: Thu, 3 Oct 2024 13:52:44 +0100 Subject: [PATCH] FIx 3 Signed-off-by: bakhtin --- .github/workflows/release.yaml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 69202d0..3d4dce0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -36,13 +36,18 @@ jobs: run: | mkdir -p reproducible-build/artifacts echo "test artifact" > ./reproducible-build/artifacts/cvm-image-azure-tdx.rootfs-20241002143710.wic - ln -s /artifacts/cvm-image-azure-tdx.rootfs-20241002143710.wic ./reproducible-build/artifacts/cvm-image-azure-tdx.rootfs.wic + ln -rs ./reproducible-build/artifacts/cvm-image-azure-tdx.rootfs-20241002143710.wic ./reproducible-build/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: | + cat < /tmp/artifacts-list + cvm-image-azure-tdx.rootfs.wic + EOF + + # Setup rclone mkdir -p ~/.config/rclone cat < ~/.config/rclone/rclone.conf [r2] @@ -55,11 +60,22 @@ jobs: 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 + # Upload artifacts + TODAY_DATE=$(date +"%Y-%m-%d") + rclone copy -v --transfers=4 --s3-upload-concurrency=20 \ + --contimeout=1m --retries 3 --retries-sleep 30s --error-on-no-transfer \ + --fast-list --checksum --copy-links --files-from /tmp/artifacts-list \ + reproducible-build/artifacts \ + r2:flashbots-public-artifacts/tdx-vm-images/$TODAY_DATE + + # Sync today's artifacts to latest + rclone sync -v --transfers=4 --contimeout=1m --retries 3 \ + --retries-sleep 30s --error-on-no-transfer --fast-list --checksum \ + r2:flashbots-public-artifacts/tdx-vm-images/$TODAY_DATE \ + r2:flashbots-public-artifacts/tdx-vm-images/latest + + # - name: Setup ssh session + # uses: Warpbuilds/action-debugger@v1.3 - name: Cache build dependencies id: cache-build-save