feat: new workflow

This commit is contained in:
2025-10-10 12:40:43 +02:00
parent 884343f8c4
commit 625d67779e
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash
TMP_PROJECT=/tmp/project
git clone "$1" "$TMP_PROJECT"
cp -rf ./* "$TMP_PROJECT"
cd "$TMP_PROJECT"
rm -rf ./.env **/uploads/ ./**/*.sql ./**/*.pem
git add -A
git commit -m "$2"
git push
cd -

View File

@@ -0,0 +1,6 @@
- hosts: all
tasks:
- name: Run kompose.sh with args
shell: cd /root/Projects/kompose && ./kompose.sh "{{ kompose_filter }}" {{ kompose_command }}
args:
executable: /bin/bash