Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimazu committed Apr 28, 2024
1 parent 174d17d commit 6c4d393
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ Automated tests are run separately for both the server and client using pytest t

```
- name: Run tests in Server
run: |
cd server
pytest
- name: Run tests in Client
run: |
cd client
pytest
run: |
cd server
pytest
- name: Run tests in Client
run: |
cd client
pytest
```

2. ### Docker Build for Server
Expand All @@ -108,26 +108,26 @@ Automated tests are run separately for both the server and client using pytest t
- **Process**: Builds a Docker image from the Dockerfile located in the server directory. This ensures that the server can be containerized consistently with every change.

```
- name: Build Docker Image for Server
run: |
if [ -d "server/" ]; then
cd server
docker build -t fastapi-server .
fi
- name: Run Docker Container
if: ${{ github.workspace }}/server
run: |
docker run -d -p 8000:8000 fastapi-server
- name: Build Docker Image for Server
run: |
if [ -d "server/" ]; then
cd server
docker build -t fastapi-server .
fi
- name: Run Docker Container
if: ${{ github.workspace }}/server
run: |
docker run -d -p 8000:8000 fastapi-server
```
- **Uploads to Docker Registry**: Logs in to the configured Dockerhub account and uploads the successfully tested image to the registry with the **:latest** tag
-
```
- name: Docker login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker image to registry
run: |
Expand Down

0 comments on commit 6c4d393

Please sign in to comment.