better-deploy #5

Merged
arif merged 7 commits from better-deploy into main 2025-08-31 18:22:50 +02:00
4 changed files with 15 additions and 5 deletions
Showing only changes of commit 2b21310dfb - Show all commits

View File

@@ -60,7 +60,6 @@ jobs:
run: docker build -t git.rivercry.com/wg/monitor-im-flur .
- name: Push Docker image
run: docker push git.rivercry.com/wg/monitor-im-flur
- name: Deploy via SSH
uses: appleboy/ssh-action@v0.1.10
with:
@@ -70,8 +69,6 @@ jobs:
password: ${{ secrets.GARRISON_DOCKER_PASSWORD }}
script: |
cd monitor-im-flur
echo "Deploying Docker container..."
$HYPRLAND_INSTANCE_SIGNATURE
hyprctl dispatch exec 'pkill firefox'
hyprctl dispatch exec 'firefox -kiosk localhost:9123'
git clean -dfx

12
githooks/pre-commit Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
echo "Running pre-commit hooks..."
biome check --write
biome lint --write
if git diff --quiet; then
exit 0
else
git add -u
fi

View File

@@ -1,7 +1,5 @@
#!/bin/sh
# create git-hash.html
echo "<!DOCTYPE html>
<html>
<head>

3
setup.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
git config --local core.hooksPath githooks