This commit is contained in:
1 parent
85ba0ffdfb
commit
1d91c42648
1 file changed
+13
-3
@@ -1,4 +1,15 @@
|
|||||||
- name: Deploying via SSH to Host (Auto-Clean)
|
name: Remote Build and Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: self-hosted
|
||||||
|
steps:
|
||||||
|
- name: Deploying via SSH to Host
|
||||||
uses: appleboy/[email protected]
|
uses: appleboy/[email protected]
|
||||||
with:
|
with:
|
||||||
host: "127.0.0.1"
|
host: "127.0.0.1"
|
||||||
@@ -9,8 +20,7 @@
|
|||||||
set -e
|
set -e
|
||||||
echo "--- EPIC WEB CONTROL: Starting Auto-Cleanup & Deploy ---"
|
echo "--- EPIC WEB CONTROL: Starting Auto-Cleanup & Deploy ---"
|
||||||
|
|
||||||
# 1. Ruim "dode" containers op zodat Docker niet vastloopt
|
# 1. Ruim "dode" containers op
|
||||||
# We gebruiken --force om niet om bevestiging te vragen
|
|
||||||
sudo docker container prune -f
|
sudo docker container prune -f
|
||||||
|
|
||||||
# 2. Navigeer naar de map
|
# 2. Navigeer naar de map
|
||||||
|
|||||||
Reference in new issue
Block a user