Skip to content

Commit

Permalink
Merge pull request #31 from CAUSOLDOUTMEN/feat/28-multiprocessing
Browse files Browse the repository at this point in the history
chore: update cicd
  • Loading branch information
synoti21 authored Dec 5, 2023
2 parents 1d17ef1 + 8592c69 commit 437ccd9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/diareat_ocr_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:
key: ${{ secrets.EC2_KEY }}

script: |
echo "AWS_ACCESS_KEY=${{ secrets.AWS_ACCESS_KEY }}" > env.list
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> env.list
echo "REGION_NAME=${{ secrets.REGION_NAME }}" >> env.list
echo "BUCKET_NAME=${{ secrets.BUCKET_NAME }}" >> env.list
echo "${{ secrets.DOCKERHUB_TOKEN }}" | sudo docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
sudo docker rm $(sudo docker stop $(sudo docker ps -a -q --filter ancestor=synoti21/diareat_ocr:latest --format="{{.ID}}"))
sudo docker rmi synoti21/diareat_ocr:latest
sudo docker pull synoti21/diareat_ocr:latest
sudo docker-compose --env-file=env.list up -d ocr
sudo docker image prune -f
sudo docker run -d -p 8000:8000 --name diareat_ocr --runtime=nvidia --gpus=all synoti21/diareat_ocr:latest
sleep 10s
sudo docker ps | grep synoti21/diareat_ocr:latest

0 comments on commit 437ccd9

Please sign in to comment.