Skip to content

Commit

Permalink
ci: prune install AWS CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Sep 25, 2023
1 parent f83ad09 commit c741a2d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/_legacy-checkpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,14 @@ jobs:
with:
name: checkpoints-${{ github.sha }}
path: ${{ env.legacy_dir }}/checkpoints/
retention-days: ${{ env.KEEP_DAYS }}

- name: Install AWS CLI
continue-on-error: true
run: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscli.zip"
unzip -qq awscli.zip
bash ./aws/install
aws --version
- name: Upload checkpoints to S3
retention-days: ${{ env.KEEP_DAYS }}to S3
working-directory: ${{ env.legacy_dir }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_PUB_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_PUB_SECRET_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
run: |
pip install -q awscli
aws s3 sync $AWS_RUN checkpoints/ s3://pl-public-data/legacy/checkpoints/
zip -r checkpoints.zip checkpoints
aws s3 cp $AWS_RUN checkpoints.zip s3://pl-public-data/legacy/ --acl public-read
Expand Down

0 comments on commit c741a2d

Please sign in to comment.