Files
landingpage-haus-schleusingen/.gitea/workflows/deploy-test.yml
Claw 9c2c8324b0
All checks were successful
Deploy Feature Branch to Test / deploy (push) Successful in 25s
Lint / PHP Syntax Check (push) Successful in 32s
Lint / CSS Lint (stylelint) (push) Successful in 1m12s
Lint / HTML Lint (htmlhint) (push) Successful in 1m8s
Lint / PHP Syntax Check (pull_request) Successful in 31s
Lint / CSS Lint (stylelint) (pull_request) Successful in 1m14s
Lint / HTML Lint (htmlhint) (pull_request) Successful in 1m9s
refactor: clean up file locations (#48)
- Remove duplicate bilder/ directory from root (already in public/bilder/)
- Move screenshots (docker-preview, page-preview, screenshot-landingpage) to docs/
- Remove duplicate robots.txt from root (already in public/)
- Update README.md image references to docs/ path
- Update deploy workflow exclusions
2026-05-22 06:53:50 +00:00

70 lines
2.1 KiB
YAML
Executable File

name: Deploy Feature Branch to Test
on:
push:
branches:
- "feature/**"
jobs:
deploy:
runs-on: ubuntu-latest
container:
volumes:
- /var/www/test/html:/deploy
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show branch info
run: |
echo "=== Deploying branch: ${{ gitea.ref_name }} ==="
echo "=== Commit: ${{ gitea.sha }} ==="
echo "=== By: ${{ gitea.actor }} ==="
date
- name: Deploy to test environment
run: |
echo "Syncing files to test environment..."
apt-get update -qq && apt-get install -y -qq rsync > /dev/null 2>&1 || true
rsync -av --delete \
--exclude='.git' \
--exclude='.gitea' \
--exclude='.husky' \
--exclude='.prettierrc' \
--exclude='.prettierignore' \
--exclude='.stylelintrc.json' \
--exclude='.htmlhintrc' \
--exclude='.gitignore' \
--exclude='.dockerignore' \
--exclude='Dockerfile' \
--exclude='nginx.conf' \
--exclude='eslint.config.js' \
--exclude='package.json' \
--exclude='docs/' \
--exclude='AGENTS.md' \
--exclude='README.md' \
./ /deploy/
# Set haus-schleusingen.html as index
cp /deploy/haus-schleusingen.html /deploy/index.html 2>/dev/null || true
echo "✅ Deployment complete!"
- name: Set permissions
run: |
chown -R 33:33 /deploy/ 2>/dev/null || true
chmod -R 755 /deploy/ 2>/dev/null || true
echo "✅ Permissions set"
- name: Deployment summary
run: |
echo "=========================================="
echo " 🚀 Deployment Summary"
echo "=========================================="
echo " Branch: ${{ gitea.ref_name }}"
echo " Commit: ${{ gitea.sha }}"
echo " Target: http://178.104.150.0/"
echo " Time: $(date)"
echo "=========================================="