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","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 echo "git:git" | chpasswd
|
||||||
RUN chown -R git:git /home/git
|
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
|
.test/test describe $0
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
podman build ./.test -t podmen
|
podman build ./.test -t podi
|
||||||
podman rm -f podmen
|
podman rm -f podi
|
||||||
podman run -d -p 2222:22 -e AUTHORIZED_KEYS="$(cat ~/.ssh/*.pub)" -v $(pwd):/podmen -w /home/git --name podmen podmen
|
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
|
test -d app && rm -rf app
|
||||||
mkdir app
|
mkdir app
|
||||||
cd app
|
cd app
|
||||||
cp ../podmen .
|
cp ../podi .
|
||||||
git init
|
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
|
.test/test describe $0
|
||||||
|
|
||||||
cd app
|
cd app
|
||||||
echo "# $(date)" >> .podmen/pipeline
|
echo "# $(date)" >> .pod/pipeline
|
||||||
git add .podmen podmen && git commit -m "testchange"
|
git add .pod podi && git commit -m "testchange"
|
||||||
git push app1 master
|
git push app1 master
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.test/test describe $0
|
.test/test describe $0
|
||||||
|
|
||||||
cd app
|
cd app
|
||||||
cp ../recipe/hello .podmen/.
|
cp ../recipe/hello .pod/.
|
||||||
git add .podmen && git commit -m "recipe hello"
|
git add .pod && git commit -m "recipe hello"
|
||||||
git push app1 master
|
git push app1 master
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
.test/test describe $0
|
.test/test describe $0
|
||||||
|
|
||||||
cd app
|
cd app
|
||||||
./podmen init git@localhost:/home/git/app2 master 2222 foobar
|
./podi init git@localhost:/home/git/app2 master 2222 foobar
|
||||||
cp ../recipe/envfile .podmen/.
|
cp ../recipe/envfile .pod/.
|
||||||
./podmen envset
|
./podi envset
|
||||||
git add .podmen .env
|
git add .pod .env
|
||||||
git commit -m "recipe envfile"
|
git commit -m "recipe envfile"
|
||||||
git push foobar master
|
git push foobar master
|
||||||
ECHO TODO #1: store remotes in .podman/remotename
|
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
|
exit 1
|
||||||
#./podmen envset foobar FOO=bar
|
#./podi envset foobar FOO=bar
|
||||||
#./podmen envset foobar FOO="flop space"
|
#./podi envset foobar FOO="flop space"
|
||||||
#./podmen envset foobar XYZ=1
|
#./podi envset foobar XYZ=1
|
||||||
#./podmen envset
|
#./podi envset
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
.test/test describe $0
|
.test/test describe $0
|
||||||
|
|
||||||
cd app
|
cd app
|
||||||
cp ../recipe/rollback.simple .podmen/.
|
cp ../recipe/rollback.simple .pod/.
|
||||||
git add .podmen
|
git add .pod
|
||||||
currentcommit=$(git log -n 1 --format="%h")
|
currentcommit=$(git log -n 1 --format="%h")
|
||||||
git commit -m "recipe rollback"
|
git commit -m "recipe rollback"
|
||||||
git push app1 master
|
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*
|
test -f ~/.ssh/id_rsa_app && rm ~/.ssh/id_rsa_app*
|
||||||
cd app
|
cd app
|
||||||
cp ../recipe/sshkey .podmen/.
|
cp ../recipe/sshkey .pod/.
|
||||||
./podmen init git@localhost:/home/git/app3 master 2222
|
./podi init git@localhost:/home/git/app3 master 2222
|
||||||
git add .podmen
|
git add .pod
|
||||||
git commit -m "recipe sshkey"
|
git commit -m "recipe sshkey"
|
||||||
git push app3 master
|
git push app3 master
|
||||||
|
|||||||
Reference in New Issue
Block a user