Skip to content

Commit

Permalink
Merge pull request #2485 from incubateur-ademe/feat/deploy-master-model
Browse files Browse the repository at this point in the history
✨ deploy master model on scaleway on push
  • Loading branch information
Clemog authored Jan 6, 2025
2 parents c6fd743 + 6d5d1a6 commit 622695d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/scaleway-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ jobs:
run: |
if [ -n "${{ github.event.pull_request }}" ]; then
FILES_PATH=model/${{ github.event.pull_request.number }}
else
elif [[ "${{ github.ref }}" == "preprod" ]]; then
FILES_PATH=model/nightly
else
FILES_PATH=model/master
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 622695d

Please sign in to comment.