wanlanda_website/.gitea/workflows/publish.yml
Zikil 85df38d990
All checks were successful
Deploy FastAPI Application / deploy (push) Successful in 4s
fix run docker for restart
2024-12-15 01:48:56 +07:00

21 lines
455 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 --restart unless-stopped -d -p 8020:8020 --name wanlanda_website wanlanda_website