Skip to content

Commit

Permalink
apps: base: maintenance-git-dotfiles: job: Simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
wigust committed Oct 21, 2024
1 parent 97966b8 commit 02f30bc
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions apps/base/maintenance-git-dotfiles/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,23 @@ spec:
restartPolicy: Never
containers:
- command:
- nsenter
- --target
- "1"
- --mount
- --uts
- --ipc
- --net
- --pid
- --no-fork
- /bin/sh
- -l
- -c
- sudo --chdir=$WORKSPACE --user=oleg --login bash -ic 'git pull --rebase origin master'
env:
- name: WORKSPACE
value: /home/oleg/.local/share/chezmoi
- |
args=(
--target "1"
--mount
--uts
--ipc
--net
--pid
--no-fork
--setuid 1000
--setgid 997
--wd /home/oleg/.local/share/chezmoi
git pull --rebase origin master
)
nsenter "$args[@]"
image: docker-registry.wugi.info/library/util-linux-with-udev
name: refresh
resources:
Expand Down

0 comments on commit 02f30bc

Please sign in to comment.