1import * as klusterCfg from './common.mjs'2import { enterKlusterCtxs } from '../../deployF/k8sF/ctxF/klusterCtxF.mts'3import { eptPeertube } from '../../deployF/servicesF/peertubeF/eptPeertubeAI.mts'4import { updateimgAction } from '../../deployF/dockerF/fetchLatestDockerTagAI.mts'5import { isDirectlyRun } from '../../serverF/isDirectlyRunF.mts'6import { getAction } from '../../deployF/ctxF/actionCtxF.mts'7import { cliHelp } from '../../deployF/cliF/cliHelpF.mts'8import { resourcesActionsH } from '../../deployF/k8sF/isActionSupportedF.mts'10const importMetaUrl = import.meta.url12if (isDirectlyRun(importMetaUrl)) {14 const extraActionsH = {updateimg: updateimgAction(importMetaUrl)}16 if (action === 'updateimg') {17 await extraActionsH.updateimg()18 process.exit(0)19 }21 const resActionsH = resourcesActionsH()22 if (!resActionsH[action]) {24 process.exit(0)25 }27 enterKlusterCtxs(klusterCfg)28 await eptPeertube({29 hostname: 'peertube.hetzn1.demokluster.com',30 adminEmail: 'pete@drawinggame.org',31 instanceName: 'peattube',32 })33}