rosdump: Use codemowers/git image

This commit is contained in:
Lauri Võsandi 2024-09-09 08:45:00 +03:00
parent bacef8d438
commit 999d17c384

View File

@ -21,7 +21,7 @@ data:
ssh rosdump@$target '/export' | grep -v '^# serial number =' | grep -v '^#.* by RouterOS' > $target
git add $target
done
if [[ `git status --porcelain` ]]; then
if [[ `git status --porcelain` ]]; then
echo "Attempting Git check in"
git commit -m "$(git diff --cached --shortstat)"
git push
@ -62,8 +62,8 @@ spec:
restartPolicy: OnFailure
containers:
- name: rosdump
image: harbor.k-space.ee/k-space/microscript-base
imagePullPolicy: Always
image: codemowers/git
imagePullPolicy: IfNotPresent
args:
- bash
- /config/script.sh