Update AWS CLI version in Dockerfile and add version check in build-linux workflow

This commit is contained in:
Max 2025-05-18 19:14:33 +08:00
parent d158ec9e50
commit e4b4e50c9f
2 changed files with 3 additions and 2 deletions

View file

@ -26,6 +26,7 @@ jobs:
aws configure set default.region us-east-1 # Update with your R2 region if different
aws configure set default.s3.signature_version s3v4
aws configure set default.s3.endpoint_url https://$R2_ACCOUNT_ID.r2.cloudflarestorage.com
aws --version
- name: Build
run: |
@ -43,5 +44,5 @@ jobs:
- name: Push To R2 Cloudflare
run: |
for file in /data/*; do
AWS_S3_DISABLE_CHECKSUMS=true aws s3 cp $file s3://$R2_BUCKET/archives/ --endpoint-url https://$R2_ACCOUNT_ID.r2.cloudflarestorage.com
aws s3 cp $file s3://$R2_BUCKET/archives/ --endpoint-url https://$R2_ACCOUNT_ID.r2.cloudflarestorage.com
done

View file

@ -41,7 +41,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
RUN npm install -g pnpm
# Install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.7.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm -rf awscliv2.zip && \