work in progress [might break]

This commit is contained in:
Leon
2022-02-13 13:23:31 +01:00
parent 66b1b12edb
commit c940539bca
10 changed files with 27 additions and 25 deletions

View File

@@ -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"
1 TODO feature .podman/git@localhost/app => .podman/git@srv/app/config T 2022-02-09@17:59
2 TODO feat commitmsg env 'FOO=1' T 2022-02-10@11:09
3 TODO feat nginx as root-user T 2022-02-10@11:09

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File