mirror of
https://github.com/coderofsalvation/podi.git
synced 2026-08-29 10:08:41 +02:00
update documentation
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
> remove layers of complexity.
|
||||
|
||||

|
||||

|
||||
|
||||
## Create recipes
|
||||
|
||||

|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
310
doc/demo1.svg
310
doc/demo1.svg
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 318 KiB |
332
doc/extend.svg
Normal file
332
doc/extend.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 162 KiB |
249
doc/intro.svg
Normal file
249
doc/intro.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 135 KiB |
7
podi
7
podi
@@ -129,16 +129,17 @@ init_server(){
|
||||
ssh -p $port $user@$server HOST=$user@$server /tmp/podi init_gitops $gitpath $server $user $port
|
||||
test -d .git || git init
|
||||
git remote | silent grep $gitremote || git remote add -t $branch $gitremote ssh://$user@$server:$port$gitpath/.git
|
||||
silent git push $server $branch && print "you can now run: git push $user@server:$appname"
|
||||
silent git push $gitremote $branch
|
||||
header "you can now run: git push $gitremote $branch"
|
||||
export PM_SERVER=$server
|
||||
export PM_BRANCH=$branch
|
||||
}
|
||||
|
||||
init_gitops(){
|
||||
git --version 1>/dev/null 2>/dev/null || error please install git on $server
|
||||
test -d $1 || mkdir $1
|
||||
test -d $1/.git && printf "already initialized: $C_GREY$1/.git$C_NORMAL\n"
|
||||
test -d $1 || {
|
||||
mkdir $1
|
||||
test -d $1/.git || {
|
||||
silent git init --bare "$1/.git" || error could not create $1/.git
|
||||
}
|
||||
trigger init_post_receive $1 $2 $3 $4 > $1/.git/hooks/post-receive
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
# description: trigger deployment without gitcommit (just execute .pod)
|
||||
# installation : run 'podi recipe deploy' or put this file into .podman folder
|
||||
# example usage: ./podman deploy
|
||||
|
||||
deploy(){ # deploy <gitremote> <branch> : use local .pod to trigger deployment (without gitcommit)
|
||||
echo todo
|
||||
}
|
||||
Reference in New Issue
Block a user