Initial commit: setup deploy workflow
Some checks failed
Deploy timelaps / deploy (push) Failing after 1s
Some checks failed
Deploy timelaps / deploy (push) Failing after 1s
This commit is contained in:
25
.gitea/workflows/deploy.yaml
Normal file
25
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Deploy timelaps
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: LabOnDeb
|
||||
steps:
|
||||
- name: Shell Deploy
|
||||
run: |
|
||||
# 1. Создаем папку, если её нет
|
||||
mkdir -p /home/ack/projects/timelaps
|
||||
cd /home/ack/projects/timelaps
|
||||
|
||||
# 2. Обновляем код напрямую через git (без checkout action)
|
||||
if [ -d ".git" ]; then
|
||||
git pull origin main
|
||||
else
|
||||
git clone https://gitea.tertelius.space/ack/timelaps.git .
|
||||
fi
|
||||
|
||||
# 3. Запускаем сборку
|
||||
docker compose up -d --build
|
||||
Reference in New Issue
Block a user