Skip to content

Commit

Permalink
✨ deploy master model on scaleway on push (#2487)
Browse files Browse the repository at this point in the history
Co-authored-by: Clément <[email protected]>
  • Loading branch information
paulsouche and Clemog authored Jan 7, 2025
1 parent 61f235b commit 7eb43a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/scaleway-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- preprod
- master
pull_request:
branches:
- preprod
Expand All @@ -28,10 +29,10 @@ jobs:
run: |
if [ -n "${{ github.event.pull_request }}" ]; then
FILES_PATH=model/${{ github.event.pull_request.number }}
elif [[ "${{ github.ref }}" == "preprod" ]]; then
FILES_PATH=model/nightly
else
elif [[ "${GITHUB_REF#refs/heads/}" == "master" ]]; then
FILES_PATH=model/master
else
FILES_PATH=model/nightly
fi
AWS_ACCESS_KEY_ID=${{ secrets.SCW_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.SCW_SECRET_KEY }} aws s3 rm s3://${{ vars.BUCKET_NAME }}/$FILES_PATH --recursive --endpoint-url ${{ vars.BUCKET_ENDPOINT }}
AWS_ACCESS_KEY_ID=${{ secrets.SCW_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.SCW_SECRET_KEY }} aws s3 cp public s3://${{ vars.BUCKET_NAME }}/$FILES_PATH --recursive --endpoint-url ${{ vars.BUCKET_ENDPOINT }} --acl public-read

0 comments on commit 7eb43a3

Please sign in to comment.