add cicd
Some checks failed
Deploy FastAPI Application / deploy (push) Failing after 17m45s

This commit is contained in:
Zikil 2024-12-15 01:03:07 +07:00
parent f711341798
commit 70ecfd8d2f
5 changed files with 21 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -0,0 +1,20 @@
name: Deploy FastAPI Application
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: build
run: |
docker build -t wanlanda_website .
- name: run
run: |
docker rm -f wanlanda_website || true
docker run -d -p 8020:8020 --name wanlanda_website wanlanda_website

View File

@ -8,4 +8,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./app /code/app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8020"]

BIN
app/.DS_Store vendored

Binary file not shown.

BIN
static/.DS_Store vendored

Binary file not shown.