db_kyc_project/.gitea/workflows/test-runner.yml
danyadjan d529f739e4
Some checks failed
Deploy App / deploy (push) Failing after 1s
Обновить .gitea/workflows/test-runner.yml
2025-03-20 14:38:32 +03:00

35 lines
701 B
YAML

name: Deploy App
on:
push:
branches:
- CICD
jobs:
deploy:
runs-on: kyc_runner
steps:
- name: Set deployment directory
run: |
mkdir -p /opt/myapp
cd /opt/myapp
- name: Checkout repository to custom folder
uses: actions/checkout@v4
with:
path: /opt/myapp
- name: List files (debugging)
run: ls -lah /opt/myapp
- name: Stop and remove old containers
run: |
cd /opt/myapp
docker-compose down || echo "No running containers to stop"
- name: Start application with Docker Compose
run: |
cd /opt/myapp
docker-compose up --build -d