Add Docker build and deploy pipeline
All checks were successful
deploy-backend / deploy (push) Successful in 8m24s

This commit is contained in:
SlimusMinus
2026-10-07 22:56:56 +03:00
parent efdae92787
commit 818c8f6a11
6 changed files with 462 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
name: deploy-backend
on:
push:
branches: [main]
jobs:
deploy:
runs-on: host
steps:
- uses: actions/checkout@v4
- name: Build image
run: docker build -t nakhodka-backend:latest -t nakhodka-backend:${{ github.sha }} .
- name: Restart backend
run: docker compose -f /opt/nakhodka/docker-compose.yml up -d backend
- name: Cleanup
run: docker image prune -f