Merge pull request #966 from trheyi/main
Update AWS CLI version in Dockerfile and add version check in build-l…
This commit is contained in:
commit
cf3253b60e
2 changed files with 3 additions and 2 deletions
3
.github/workflows/build-linux.yml
vendored
3
.github/workflows/build-linux.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 && \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue