Skip to content

Commit

Permalink
doc: README.md 업데이트
Browse files Browse the repository at this point in the history
- github action flow build 하위 브랜치 모두 작동하도록 변경
  • Loading branch information
sukkyun2 committed Jun 25, 2024
1 parent 7257fb0 commit 36dadbb
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy with Docker

on:
push:
branches: [ main, build/deploy-ec2 ]
branches: [ main, build/* ]

env:
DOCKER_IMAGE: ghcr.io/${{ github.actor }}/apap.ai
Expand Down
51 changes: 49 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,49 @@
# APAP-ai
한이음ICT-2024-APAP-ai
# APAP-AI

This is a repository for an object detection inference API using `YOLOv5` and `FastAPI`

This repository is used for 스마트해상물류 ICT project.


### Install
Dependencies are managed using `Poetry`.

```shell
pip install poetry
poetry install
```

### Run
```shell
poetry run uvicorn --host=127.0.0.1 app.main:app
```

### Usage
Environment variables are managed through dotenv.

The defined variables are referenced from the `.env` file in the root directory.

### API Endpoints
Documentation is provided through `SwaggerUI`, which is built into `FastAPI` by default.

```http request
http://localhost:8080/docs
```

### Test
```shell
poetry run pytest
```

### Deployment via GitHub Actions
The following variables need to be defined in the `Environment secrets`:

| Variable | Description |
|----------------------|------------------------------------|
| GHCR_TOKEN | GitHub Container Registry Token |
| REMOTE_IP | Remote server IP |
| REMOTE_USER | Remote server user name |
| REMOTE_PRIVATE_KEY | Remote server private key |
| REMOTE_SSH_PORT | 22 |


0 comments on commit 36dadbb

Please sign in to comment.