mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 22:29:06 +01:00
comin: Set git directory in post script
This commit is contained in:
parent
746264185f
commit
29e7613021
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ let
|
||||||
token=$(cat "${config.sops.secrets."git/push-token".path}")
|
token=$(cat "${config.sops.secrets."git/push-token".path}")
|
||||||
repo_url="https://x-access-token:$token@github.com/SebastianStork/nixos-config.git"
|
repo_url="https://x-access-token:$token@github.com/SebastianStork/nixos-config.git"
|
||||||
|
|
||||||
git push --force "$repo_url" "$COMIN_GIT_SHA:refs/heads/deployed/$COMIN_HOSTNAME"
|
git -C /var/lib/comin/repository push --force "$repo_url" "$COMIN_GIT_SHA:refs/heads/deployed/$COMIN_HOSTNAME"
|
||||||
|
|
||||||
echo "Updated deployed/$COMIN_HOSTNAME to $COMIN_GIT_SHA"
|
echo "Updated deployed/$COMIN_HOSTNAME to $COMIN_GIT_SHA"
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue