ci: deploy-dev workflow (Gitea Actions, self-hosted host runner)
All checks were successful
Deploy to Dev / deploy (push) Successful in 1s
All checks were successful
Deploy to Dev / deploy (push) Successful in 1s
This commit is contained in:
parent
5c930cfc28
commit
48b14a5bf7
22
.gitea/workflows/deploy-dev.yml
Normal file
22
.gitea/workflows/deploy-dev.yml
Normal file
@ -0,0 +1,22 @@
|
||||
name: Deploy to Dev
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
concurrency:
|
||||
group: deploy-dev
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Pull latest into Dev webroot
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cd /var/www/vhosts/dev.intelectra.de/httpdocs
|
||||
git fetch --prune origin
|
||||
git pull --ff-only origin main
|
||||
rm -rf tmp/smarty_compile/* tmp/smarty_cache/* 2>/dev/null || true
|
||||
echo "Deploy finished at $(date)"
|
||||
Loading…
Reference in New Issue
Block a user