mover forgejo a services
This commit is contained in:
parent
f981518d88
commit
436c1a0f76
5 changed files with 9 additions and 9 deletions
4
index.ts
4
index.ts
|
@ -3,8 +3,8 @@ import { tmpdir } from "node:os";
|
|||
import path from "node:path";
|
||||
import { cwd, exit } from "node:process";
|
||||
import { Alpine } from "./alpine.js";
|
||||
import { setupForgejo } from "./forgejo/index.js";
|
||||
import { generateForgejoSecretsFile } from "./forgejo/secrets.js";
|
||||
import { setupForgejo } from "./services/forgejo/index.js";
|
||||
import { generateForgejoSecretsFile } from "./services/forgejo/secrets.js";
|
||||
import { execFile } from "./helpers/better-api.js";
|
||||
import { sudoChownToRunningUser } from "./helpers/sudo.js";
|
||||
import { setupKernel } from "./kernel.js";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { chmod, mkdir, readFile, writeFile } from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
import { reproRun } from "../helpers/repro-run.js";
|
||||
import { reproRun } from "../../helpers/repro-run.js";
|
||||
|
||||
const FORGEJO_VERSION = "v1.18.3-0";
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
import { buildForgejo } from "./build.js";
|
||||
import { Alpine } from "../alpine.js";
|
||||
import { Runit } from "../runit/index.js";
|
||||
import { constants, writeFile } from "node:fs/promises";
|
||||
import { Alpine } from "../../alpine.js";
|
||||
import { Runit } from "../../runit/index.js";
|
||||
import { writeFile } from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
import { loadForgejoSecretsFile } from "./secrets.js";
|
||||
import { sudoChmod, sudoChown, sudoCopy } from "../helpers/sudo.js";
|
||||
import { sudoChown, sudoCopy } from "../../helpers/sudo.js";
|
||||
|
||||
export async function setupForgejo(alpine: Alpine, runit: Runit) {
|
||||
const bin = await buildForgejo();
|
|
@ -1,5 +1,5 @@
|
|||
import { execFile } from "../helpers/better-api.js";
|
||||
import { generateSecretsFile, loadSecretsFile } from "../helpers/secrets.js";
|
||||
import { execFile } from "../../helpers/better-api.js";
|
||||
import { generateSecretsFile, loadSecretsFile } from "../../helpers/secrets.js";
|
||||
import { buildForgejo } from "./build.js";
|
||||
|
||||
export interface ForgejoSecrets {
|
Loading…
Reference in a new issue