comin: Attempt to fix the github token

This commit is contained in:
SebastianStork 2026-03-06 20:31:41 +01:00
parent c59058920d
commit 43752a7f77
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -18,7 +18,7 @@ let
exit 0
fi
token=$(cat "''${CREDENTIALS_DIRECTORY}/git-push-token")
token=$(cat "${config.sops.secrets."git/push-token".path}")
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"
@ -41,9 +41,6 @@ in
config = lib.mkIf cfg.enable {
sops.secrets."git/push-token" = { };
systemd.services.comin.serviceConfig.LoadCredential = "git-push-token:${
config.sops.secrets."git/push-token".path
}";
services.comin = {
enable = true;