update documentation

This commit is contained in:
Leon
2022-02-15 15:06:41 +01:00
parent b5173da427
commit e883e5dfd5
6 changed files with 589 additions and 321 deletions

View File

@@ -1,7 +1,10 @@
> remove layers of complexity.
![](./doc/demo1.svg)
![](./doc/intro.svg)
## Create recipes
![](./doc/extend.svg)
## Usage

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 318 KiB

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

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 135 KiB

7
podi
View File

@@ -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

View File

@@ -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
}