mover forgejo a services

This commit is contained in:
Cat /dev/Nulo 2023-02-08 11:50:07 -03:00
parent f981518d88
commit 436c1a0f76
5 changed files with 9 additions and 9 deletions

View file

@ -3,8 +3,8 @@ import { tmpdir } from "node:os";
import path from "node:path"; import path from "node:path";
import { cwd, exit } from "node:process"; import { cwd, exit } from "node:process";
import { Alpine } from "./alpine.js"; import { Alpine } from "./alpine.js";
import { setupForgejo } from "./forgejo/index.js"; import { setupForgejo } from "./services/forgejo/index.js";
import { generateForgejoSecretsFile } from "./forgejo/secrets.js"; import { generateForgejoSecretsFile } from "./services/forgejo/secrets.js";
import { execFile } from "./helpers/better-api.js"; import { execFile } from "./helpers/better-api.js";
import { sudoChownToRunningUser } from "./helpers/sudo.js"; import { sudoChownToRunningUser } from "./helpers/sudo.js";
import { setupKernel } from "./kernel.js"; import { setupKernel } from "./kernel.js";

View file

@ -1,6 +1,6 @@
import { chmod, mkdir, readFile, writeFile } from "node:fs/promises"; import { chmod, mkdir, readFile, writeFile } from "node:fs/promises";
import { join } from "node:path"; 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"; const FORGEJO_VERSION = "v1.18.3-0";

View file

@ -1,10 +1,10 @@
import { buildForgejo } from "./build.js"; import { buildForgejo } from "./build.js";
import { Alpine } from "../alpine.js"; import { Alpine } from "../../alpine.js";
import { Runit } from "../runit/index.js"; import { Runit } from "../../runit/index.js";
import { constants, writeFile } from "node:fs/promises"; import { writeFile } from "node:fs/promises";
import { join } from "node:path"; import { join } from "node:path";
import { loadForgejoSecretsFile } from "./secrets.js"; 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) { export async function setupForgejo(alpine: Alpine, runit: Runit) {
const bin = await buildForgejo(); const bin = await buildForgejo();

View file

@ -1,5 +1,5 @@
import { execFile } from "../helpers/better-api.js"; import { execFile } from "../../helpers/better-api.js";
import { generateSecretsFile, loadSecretsFile } from "../helpers/secrets.js"; import { generateSecretsFile, loadSecretsFile } from "../../helpers/secrets.js";
import { buildForgejo } from "./build.js"; import { buildForgejo } from "./build.js";
export interface ForgejoSecrets { export interface ForgejoSecrets {