root when it should be

This commit is contained in:
2025-11-29 21:46:25 -05:00
parent ea46b0d84e
commit 3f8200feb6
4 changed files with 14 additions and 11 deletions

View File

@@ -1,14 +1,13 @@
import userConfig from "../config";
import hash from "object-hash";
export type DeployerService = {
user: string;
repo: string;
branch: string;
};
export type DeployerConfig = {
services: {
[host: string]: {
user: string;
repo: string;
branch: string;
};
};
services: { [host: string]: DeployerService };
giteaUrl: string;
directory: string;
basePort: number;
@@ -27,3 +26,6 @@ export const indexedConfig = Object.fromEntries(
},
])
);
export const isSelf = ({ user, repo }: DeployerService) =>
`${user}/${repo}` == "drm/deployer2";