sybiko_website/.gitea/workflows/publish.yml
Zikil 95801d9273
All checks were successful
Deploy FastAPI Application / deploy (push) Successful in 10s
fix run docker for restart
2024-12-15 01:48:42 +07:00

21 lines
447 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 sybiko_website .
- name: run
run: |
docker rm -f sybiko_website || true
docker run --restart unless-stopped -d -p 8010:8010 --name sybiko_website sybiko_website