Skip to content

Commit

Permalink
✨ deploy master model on scaleway on push
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsouche committed Jan 6, 2025
1 parent 622695d commit 784b7e9
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 784b7e9

Please sign in to comment.