mirror of
https://github.com/coderofsalvation/podi.git
synced 2025-12-16 11:57:45 +01:00
work in progress [might break]
This commit is contained in:
@@ -1 +1,3 @@
|
||||
"TODO","feature",".podman/git@localhost/app => .podman/git@srv/app/config","T","2022-02-09@17:59"
|
||||
"TODO","feat","commitmsg env 'FOO=1'","T","2022-02-10@11:09"
|
||||
"TODO","feat","nginx as root-user","T","2022-02-10@11:09"
|
||||
|
||||
|
@@ -12,4 +12,4 @@ RUN apk update \
|
||||
RUN echo "git:git" | chpasswd
|
||||
RUN chown -R git:git /home/git
|
||||
|
||||
CMD ["/podmen/.test/docker-entrypoint.sh"]
|
||||
CMD ["/podi/.test/docker-entrypoint.sh"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.test/test describe $0
|
||||
|
||||
set +x
|
||||
podman build ./.test -t podmen
|
||||
podman rm -f podmen
|
||||
podman run -d -p 2222:22 -e AUTHORIZED_KEYS="$(cat ~/.ssh/*.pub)" -v $(pwd):/podmen -w /home/git --name podmen podmen
|
||||
podman build ./.test -t podi
|
||||
podman rm -f podi
|
||||
podman run -d -p 2222:22 -e AUTHORIZED_KEYS="$(cat ~/.ssh/*.pub)" -v $(pwd):/podi -w /home/git --name podi podi
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
test -d app && rm -rf app
|
||||
mkdir app
|
||||
cd app
|
||||
cp ../podmen .
|
||||
cp ../podi .
|
||||
git init
|
||||
./podmen init git@localhost:/home/git/app master 2222 app1
|
||||
./podi init git@localhost:/home/git/app master 2222 app1
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.test/test describe $0
|
||||
|
||||
cd app
|
||||
echo "# $(date)" >> .podmen/pipeline
|
||||
git add .podmen podmen && git commit -m "testchange"
|
||||
echo "# $(date)" >> .pod/pipeline
|
||||
git add .pod podi && git commit -m "testchange"
|
||||
git push app1 master
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.test/test describe $0
|
||||
|
||||
cd app
|
||||
cp ../recipe/hello .podmen/.
|
||||
git add .podmen && git commit -m "recipe hello"
|
||||
cp ../recipe/hello .pod/.
|
||||
git add .pod && git commit -m "recipe hello"
|
||||
git push app1 master
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
.test/test describe $0
|
||||
|
||||
cd app
|
||||
./podmen init git@localhost:/home/git/app2 master 2222 foobar
|
||||
cp ../recipe/envfile .podmen/.
|
||||
./podmen envset
|
||||
git add .podmen .env
|
||||
./podi init git@localhost:/home/git/app2 master 2222 foobar
|
||||
cp ../recipe/envfile .pod/.
|
||||
./podi envset
|
||||
git add .pod .env
|
||||
git commit -m "recipe envfile"
|
||||
git push foobar master
|
||||
ECHO TODO #1: store remotes in .podman/remotename
|
||||
ECHO TODO #2: ./podmen ==> list remotes + add git remotes if not exist
|
||||
ECHO TODO #2: ./podi ==> list remotes + add git remotes if not exist
|
||||
exit 1
|
||||
#./podmen envset foobar FOO=bar
|
||||
#./podmen envset foobar FOO="flop space"
|
||||
#./podmen envset foobar XYZ=1
|
||||
#./podmen envset
|
||||
#./podi envset foobar FOO=bar
|
||||
#./podi envset foobar FOO="flop space"
|
||||
#./podi envset foobar XYZ=1
|
||||
#./podi envset
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
.test/test describe $0
|
||||
|
||||
cd app
|
||||
cp ../recipe/rollback.simple .podmen/.
|
||||
git add .podmen
|
||||
cp ../recipe/rollback.simple .pod/.
|
||||
git add .pod
|
||||
currentcommit=$(git log -n 1 --format="%h")
|
||||
git commit -m "recipe rollback"
|
||||
git push app1 master
|
||||
./podmen rollback git@localhost app1 $currentcommit
|
||||
./podi rollback git@localhost app1 $currentcommit
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
test -f ~/.ssh/id_rsa_app && rm ~/.ssh/id_rsa_app*
|
||||
cd app
|
||||
cp ../recipe/sshkey .podmen/.
|
||||
./podmen init git@localhost:/home/git/app3 master 2222
|
||||
git add .podmen
|
||||
cp ../recipe/sshkey .pod/.
|
||||
./podi init git@localhost:/home/git/app3 master 2222
|
||||
git add .pod
|
||||
git commit -m "recipe sshkey"
|
||||
git push app3 master
|
||||
|
||||
Reference in New Issue
Block a user