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