Skip to content

Commit

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

0 comments on commit fab6549

Please sign in to comment.