feat: new workflow
This commit is contained in:
@@ -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 -
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user