wanlanda_website/.gitea/workflows/publish.yml
Zikil 70ecfd8d2f
Some checks failed
Deploy FastAPI Application / deploy (push) Failing after 17m45s
add cicd
2024-12-15 01:03:07 +07:00

21 lines
430 B
YAML

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