Files
smart-search-back/.gitea/workflows/deploy.yml
Nikita Nogovicyn 5418f6f62d
Some checks failed
Deploy Smart Search Backend / deploy (push) Failing after 7s
add deplo.yml
2026-01-17 16:45:40 +00:00

35 lines
743 B
YAML

name: Deploy Smart Search Backend
on:
push:
branches:
- main
jobs:
deploy:
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker image
run: |
docker build -t smart-search-backend:latest .
- name: Stop old container
run: |
docker stop smart-search-backend || true
docker rm smart-search-backend || true
- name: Run new container
run: |
docker run -d \
--name smart-search-backend \
--restart always \
-p 127.0.0.1:9091:9091 \
smart-search-backend:latest
- name: Cleanup old images
run: |
docker image prune -f