Skip to content

Commit

Permalink
hue-minh-nguyen-ci-cd-update-env (#33)
Browse files Browse the repository at this point in the history
* Update ci.yml

* Update ci.yml

* Update requirements.txt
  • Loading branch information
nghminh2002 authored Sep 17, 2024
1 parent 28acbd2 commit 9e10761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches:
- main

# Build and Deploy
jobs:
build-production:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
sudo docker stop '${{ secrets.APP_NAME }}';
sudo docker rm '${{ secrets.APP_NAME }}';
sudo docker pull '${{ secrets.CI_DOCKER_USERNAME }}'/'${{ secrets.APP_NAME }}':'${{ github.sha }}';
sudo docker run -d -p 5000:5000 --name '${{ secrets.APP_NAME }}' '${{ secrets.CI_DOCKER_USERNAME }}'/'${{ secrets.APP_NAME }}':'${{ github.sha }}';
sudo docker run -d -p 5000:5000 --name "${{ secrets.APP_NAME }}" -e GOOGLE_MAP_API_KEY="${{ secrets.GOOGLE_MAP_API_KEY }}" -e DATABASE_URL="${{ secrets.DATABASE_URL }}" "${{ secrets.CI_DOCKER_USERNAME }}"/"${{ secrets.APP_NAME }}":"${{ github.sha }}";
sudo docker system prune -a -f;
sudo docker logout;
1 change: 1 addition & 0 deletions main/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ traitlets==5.14.1
urllib3==2.2.2
wcwidth==0.2.13
Werkzeug==3.0.4
python-dotenv==1.0.1

0 comments on commit 9e10761

Please sign in to comment.