Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ internal/proxmoxapi/ minimal Proxmox API client (container listing: pre-
internal/cloudflare/ minimal Cloudflare API client (tunnel, DNS, Access, Workers) and a fake for tests
internal/knownhosts/ the LXCs' SSH host keys in the GitOps repo (state/known_hosts)
internal/tfstate/ reconciles Terraform state with the LXCs that exist on Proxmox
internal/gitea/ minimal Gitea API client (tokens, org, repos, webhooks, tags, registry lookups)
internal/forge/ minimal client of the forge, Forgejo (tokens, org, repos, webhooks, tags, registry lookups)
internal/komodo/ minimal Komodo v2 API client (keys, accounts, servers, builds, stacks, actions, procedures)
internal/gitsync/ git commit/push helpers (GitOps repo, a project's main branch)
internal/rollout/ a project's Builds and an environment's Stacks on Komodo; releases; waiting for deploys
Expand Down
6 changes: 3 additions & 3 deletions e2e/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ expect_status() {
}

gitea_api() { # gitea_api <method> <path> [json]
curl -s -X "$1" "$GITEA/api/v1$2" -H "authorization: token $(cred giteaToken)" \
curl -s -X "$1" "$GITEA/api/v1$2" -H "authorization: token $(cred forgeToken)" \
-H 'content-type: application/json' ${3:+-d "$3"}
}

Expand All @@ -49,11 +49,11 @@ komodo_names() { # komodo_names <Servers|Builds|Deployments|Procedures>
}

git_remote() { # the app repo's clone URL on Gitea, with credentials
echo "http://urbex-admin:$(cred giteaToken)@$NET.200:3000/urbex/hello.git"
echo "http://urbex-admin:$(cred forgeToken)@$NET.200:3000/urbex/hello.git"
}

gitops_remote() { # the GitOps repo's clone URL on Gitea, with credentials
echo "http://urbex-admin:$(cred giteaToken)@$NET.200:3000/urbex/gitops.git"
echo "http://urbex-admin:$(cred forgeToken)@$NET.200:3000/urbex/gitops.git"
}

# push_main <new-version>: what a developer does on a trunk-based
Expand Down
8 changes: 4 additions & 4 deletions e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ step "bootstrap: scaffold urbex.platform.yaml" '
cat >"$WORK/gitops/urbex.platform.yaml" <<EOF
domain: urbex.test
git:
giteaUrl: http://$NET.200:3000
forgeUrl: http://$NET.200:3000
org: urbex
proxmox:
apiUrl: http://127.0.0.1:8006/api2/json
Expand Down Expand Up @@ -216,7 +216,7 @@ step "bootstrap: base services and platform setup" '
grep -q "^sops_" /work/gitops/platform/$svc/secrets.sops.env || fail "platform/$svc/secrets.sops.env is not sops-encrypted"
done
# No generated secret is in plaintext anywhere under platform/.
for name in keycloakAdminPassword keycloakDbPassword grafanaAdminPassword technitiumAdminPassword komodoDbPassword komodoAdminPassword giteaAdminPassword; do
for name in keycloakAdminPassword keycloakDbPassword grafanaAdminPassword technitiumAdminPassword komodoDbPassword komodoAdminPassword forgeAdminPassword; do
value=$(cred $name)
[ -n "$value" ] || fail "no $name in the credentials"
! grep -rqF "$value" /work/gitops/platform || fail "$name in plaintext in the gitops repo: $(grep -rlF "$value" /work/gitops/platform)"
Expand All @@ -233,7 +233,7 @@ step "bootstrap again: idempotent" '
# Proxmox, and there is no Cloudflare.
urbex status --progress | tee /tmp/progress.txt
grep -q "^urbex bootstrap: done in" /tmp/progress.txt || fail "status --progress should show the bootstrap done"
grep -q "✓ Install Gitea and Komodo" /tmp/progress.txt || fail "status --progress should show the parallel play done"
grep -q "✓ Install Forgejo and Komodo" /tmp/progress.txt || fail "status --progress should show the parallel play done"
grep -q "skipped: no Cloudflare" /tmp/progress.txt || fail "status --progress should show Cloudflare skipped"
echo "ok: second bootstrap changed nothing"'

Expand All @@ -260,7 +260,7 @@ step "apply staging: it follows main, and runs main's head right away" '
# users browsers reach Keycloak at, not how a service reaches it.
! grep -rnE "([0-9]{1,3}[.]){3}[0-9]{1,3}" /work/gitops/environments | grep -v KEYCLOAK_ISSUER || fail "the environments in the gitops repo hold addresses, not names"
grep -q "image: git.urbex.urbex.test:3000/urbex/hello-api" /work/gitops/environments/staging/hello/api/compose.yaml || fail "the image should come from the registry by name"
urbex status | grep -F "Gitea" | grep -F "http://git.urbex.urbex.test:3000" | grep -F "http://$NET.200:3000" | grep -qv "(missing)\|(points to" || fail "status should show gitea by internal name and LAN address, with its record"
urbex status | grep -F "Forgejo" | grep -F "http://git.urbex.urbex.test:3000" | grep -F "http://$NET.200:3000" | grep -qv "(missing)\|(points to" || fail "status should show gitea by internal name and LAN address, with its record"
echo "ok: staging follows main"'

step "a push to main is deployed to staging, with no command" '
Expand Down
2 changes: 1 addition & 1 deletion internal/bootstrap/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func PlatformEndpoints(cfg *platform.Config) ([]PlatformEndpoint, error) {
keycloakNote = "realms public; admin console behind Cloudflare Access"
}
return []PlatformEndpoint{
{"gitea", "Gitea (web, git, registry)", internal("git", "3000"), lan("gitea", "3000"), https(pub.Gitea), access},
{"gitea", "Forgejo (web, git, registry)", internal("git", "3000"), lan("gitea", "3000"), https(pub.Gitea), access},
{"komodo", "Komodo", internal("komodo", "9120"), lan("komodo", "9120"), https(pub.Komodo), access},
{"komodo", "Komodo webhooks", internal("hooks", "9120") + "/listener/", lan("komodo", "9120") + "/listener/", httpsPath(pub.Hooks, "/listener/"), "signed calls only"},
{"keycloak", "Keycloak", internal("auth", "8080"), lan("keycloak", "8080"), https(pub.Keycloak), keycloakNote},
Expand Down
2 changes: 1 addition & 1 deletion internal/bootstrap/endpoints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestPlatformEndpoints(t *testing.T) {
if e := byName["Grafana"]; e.LAN != "http://192.168.1.204:3000" || e.Internal != "http://grafana.urbex.example.com:3000" || e.Public != "" {
t.Errorf("Grafana = %+v", e)
}
if e := byName["Gitea (web, git, registry)"]; e.LAN != "http://192.168.1.200:3000" || e.Public != "" {
if e := byName["Forgejo (web, git, registry)"]; e.LAN != "http://192.168.1.200:3000" || e.Public != "" {
t.Errorf("without Cloudflare nothing is public: %+v", e)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/bootstrap/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (o *Orchestrator) Run(ctx context.Context, opts Options) error {
return err
}
path, _ := credentials.DefaultPath()
fmt.Fprintf(o.Out, "Platform ready. Gitea/Komodo admin user: %s; generated passwords and tokens are in %s.\n", GiteaAdminUser, credentials.HostPath(path))
fmt.Fprintf(o.Out, "Platform ready. Forgejo/Komodo admin user: %s; generated passwords and tokens are in %s.\n", GiteaAdminUser, credentials.HostPath(path))
return nil
}

Expand Down
16 changes: 8 additions & 8 deletions internal/bootstrap/orchestrator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (f *fakeRunner) Run(ctx context.Context, c Command) error {
func validConfig() *platform.Config {
return &platform.Config{
Domain: "example.com",
Git: platform.GitConfig{GiteaURL: "https://git.example.com", Org: "urbex"},
Git: platform.GitConfig{ForgeURL: "https://git.example.com", Org: "urbex"},
Proxmox: platform.ProxmoxConfig{
APIURL: "https://proxmox.example.internal:8006/api2/json",
Node: "pve",
Expand Down Expand Up @@ -420,7 +420,7 @@ func TestRun_SetsUpGiteaAndKomodoAndPushesGitOpsRepo(t *testing.T) {
}

creds := o.Credentials
if creds.GiteaAdminPassword == "" || creds.KomodoDBPassword == "" || creds.KeycloakAdminPassword == "" || creds.TechnitiumAdminPassword == "" {
if creds.ForgeAdminPassword == "" || creds.KomodoDBPassword == "" || creds.KeycloakAdminPassword == "" || creds.TechnitiumAdminPassword == "" {
t.Errorf("expected platform secrets to be generated, got %+v", creds)
}
if creds.TechnitiumToken != "technitium-token" {
Expand All @@ -443,7 +443,7 @@ func TestRun_SetsUpGiteaAndKomodoAndPushesGitOpsRepo(t *testing.T) {
}
ansible := runner.calls[2]
env := strings.Join(ansible.Env, "\n")
for _, want := range []string{"URBEX_GITEA_ADMIN_PASSWORD=" + creds.GiteaAdminPassword, "URBEX_KOMODO_JWT_SECRET=" + creds.KomodoJWTSecret} {
for _, want := range []string{"URBEX_FORGE_ADMIN_PASSWORD=" + creds.ForgeAdminPassword, "URBEX_KOMODO_JWT_SECRET=" + creds.KomodoJWTSecret} {
if !strings.Contains(env, want) {
t.Errorf("expected %q in ansible env", want)
}
Expand All @@ -452,10 +452,10 @@ func TestRun_SetsUpGiteaAndKomodoAndPushesGitOpsRepo(t *testing.T) {
t.Error("the proxmox token must not be passed to ansible")
}

if fp.tokens["urbex-cli"] != creds.GiteaAdminPassword || len(fp.tokens) != 1 {
if fp.tokens["urbex-cli"] != creds.ForgeAdminPassword || len(fp.tokens) != 1 {
t.Errorf("expected exactly the cli token, created with the admin password, got %v", fp.tokens)
}
if creds.GiteaToken != "token-urbex-cli" || creds.KomodoOnboardingKey != "O_onboarding_O" {
if creds.ForgeToken != "token-urbex-cli" || creds.KomodoOnboardingKey != "O_onboarding_O" {
t.Errorf("token/onboarding key not stored in credentials: %+v", creds)
}
if creds.KomodoAPIKey != "K_key_K" || creds.KomodoAPISecret != "S_secret_S" {
Expand Down Expand Up @@ -525,18 +525,18 @@ func TestRun_SetsUpGiteaAndKomodoAndPushesGitOpsRepo(t *testing.T) {
if !strings.Contains(string(inventory), "gitea_registry: git.urbex.example.com:3000") {
t.Errorf("expected gitea_registry in inventory vars:\n%s", inventory)
}
if strings.Contains(string(inventory), creds.GiteaAdminPassword) {
if strings.Contains(string(inventory), creds.ForgeAdminPassword) {
t.Error("secrets must never be written to the inventory")
}

// Re-running keeps existing secrets and tokens instead of rotating them.
password, token := creds.GiteaAdminPassword, creds.GiteaToken
password, token := creds.ForgeAdminPassword, creds.ForgeToken
technitiumPassword, technitiumToken := creds.TechnitiumAdminPassword, creds.TechnitiumToken
fp.tokens, fp.apiKeys, fp.onboardingKeys = nil, 0, 0
if err := o.Run(context.Background(), Options{GitOpsRepoPath: dir}); err != nil {
t.Fatalf("second Run: %v", err)
}
if creds.GiteaAdminPassword != password || creds.GiteaToken != token || len(fp.tokens) != 0 || fp.apiKeys != 0 || fp.onboardingKeys != 0 {
if creds.ForgeAdminPassword != password || creds.ForgeToken != token || len(fp.tokens) != 0 || fp.apiKeys != 0 || fp.onboardingKeys != 0 {
t.Errorf("expected no secret/token rotation on re-run (tokens=%v apiKeys=%d onboardingKeys=%d)", fp.tokens, fp.apiKeys, fp.onboardingKeys)
}
if creds.TechnitiumAdminPassword != technitiumPassword || creds.TechnitiumToken != technitiumToken {
Expand Down
4 changes: 2 additions & 2 deletions internal/bootstrap/phases.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ func Phases(cfg *platform.Config) []progress.PhaseSpec {
{ID: PhaseLXCs, Title: "Create the LXCs (Terraform)", Estimate: 50 * time.Second},
{ID: PhaseCommon, Title: "Configure every LXC (Ansible)", Estimate: 20 * time.Second, Play: "Configure all urbex base-service containers"},
{ID: PhaseTechnitium, Title: "Install Technitium (DNS)", Estimate: 25 * time.Second, Play: "Deploy Technitium DNS"},
{ID: PhaseBase, Title: "Install Gitea and Komodo, pull the other images", Estimate: 290 * time.Second, Play: "Deploy the other base services in parallel"},
{ID: PhaseBase, Title: "Install Forgejo and Komodo, pull the other images", Estimate: 290 * time.Second, Play: "Deploy the other base services in parallel"},
{ID: PhaseAgents, Title: "Prepare the telemetry agents", Estimate: 20 * time.Second, Play: "Send every base service's logs and resource metrics to the observability stack"},
{ID: PhaseDNS, Title: "Configure the internal DNS", Estimate: 10 * time.Second},
{ID: PhaseGitOps, Title: "Set up Gitea, Komodo and the GitOps repo", Estimate: 20 * time.Second},
{ID: PhaseGitOps, Title: "Set up Forgejo, Komodo and the GitOps repo", Estimate: 20 * time.Second},
{ID: PhaseConnect, Title: "Connect the LXCs to Komodo", Estimate: 20 * time.Second, Play: "Connect the base services' LXCs to Komodo"},
{ID: PhaseStacks, Title: "Deploy the platform's Stacks (Komodo)", Estimate: 480 * time.Second},
{ID: PhaseCloudflare, Title: "Publish on Cloudflare", Estimate: 30 * time.Second},
Expand Down
26 changes: 14 additions & 12 deletions internal/bootstrap/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/urbforge/urbex-cli/internal/credentials"
"github.com/urbforge/urbex-cli/internal/gitea"
"github.com/urbforge/urbex-cli/internal/forge"
"github.com/urbforge/urbex-cli/internal/gitsync"
"github.com/urbforge/urbex-cli/internal/komodo"
"github.com/urbforge/urbex-cli/internal/platform"
Expand Down Expand Up @@ -214,7 +214,7 @@ type Clients struct {
// DefaultClients returns Clients backed by the real HTTP clients and git.
func DefaultClients() Clients {
return Clients{
Gitea: func(u, t string) GiteaAPI { return gitea.New(u, t) },
Gitea: func(u, t string) GiteaAPI { return forge.New(u, t) },
Komodo: func(u, k, s string) KomodoAPI { return komodo.New(u, k, s) },
SyncRepo: SyncRepo,
PullRepo: PullRepo,
Expand All @@ -225,7 +225,7 @@ func DefaultClients() Clients {
// ansibleSecretEnv are the secrets the base-service roles read with
// lookup('env', ...). ensureSecrets generates any that are missing.
var ansibleSecretEnv = []string{
"URBEX_GITEA_ADMIN_PASSWORD",
"URBEX_FORGE_ADMIN_PASSWORD",
"URBEX_KOMODO_ADMIN_PASSWORD",
"URBEX_KOMODO_DB_PASSWORD",
"URBEX_KOMODO_JWT_SECRET",
Expand Down Expand Up @@ -290,23 +290,23 @@ func (o *Orchestrator) setupPlatform(ctx context.Context, clients Clients, gitop
if err := g.WaitReady(ctx, 3*time.Minute); err != nil {
return err
}
if creds.GiteaToken == "" {
token, err := g.CreateToken(ctx, GiteaAdminUser, creds.GiteaAdminPassword, "urbex-cli", cliTokenScopes)
if creds.ForgeToken == "" {
token, err := g.CreateToken(ctx, GiteaAdminUser, creds.ForgeAdminPassword, "urbex-cli", cliTokenScopes)
if err != nil {
return err
}
if err := creds.Update(func(c *credentials.Credentials) { c.GiteaToken = token }); err != nil {
if err := creds.Update(func(c *credentials.Credentials) { c.ForgeToken = token }); err != nil {
return fmt.Errorf("saving gitea token: %w", err)
}
}
g = clients.Gitea(ep.GiteaURL, creds.GiteaToken)
g = clients.Gitea(ep.GiteaURL, creds.ForgeToken)
if err := g.EnsureOrg(ctx, o.Config.Git.Org); err != nil {
return err
}
if err := g.EnsureRepo(ctx, o.Config.Git.Org, GitOpsRepoName); err != nil {
return err
}
fmt.Fprintf(o.Out, "Gitea ready at %s (org %s).\n", ep.GiteaURL, o.Config.Git.Org)
fmt.Fprintf(o.Out, "Forgejo ready at %s (org %s).\n", ep.GiteaURL, o.Config.Git.Org)

k := clients.Komodo(ep.KomodoURL, "", "")
if err := k.WaitReady(ctx, 3*time.Minute); err != nil {
Expand Down Expand Up @@ -336,10 +336,10 @@ func (o *Orchestrator) setupPlatform(ctx context.Context, clients Clients, gitop
return fmt.Errorf("saving komodo onboarding key: %w", err)
}
}
if err := k.EnsureGitProviderAccount(ctx, internal.Registry, false, GiteaAdminUser, creds.GiteaToken); err != nil {
if err := k.EnsureGitProviderAccount(ctx, internal.Registry, false, GiteaAdminUser, creds.ForgeToken); err != nil {
return err
}
if err := k.EnsureDockerRegistryAccount(ctx, internal.Registry, GiteaAdminUser, creds.GiteaToken); err != nil {
if err := k.EnsureDockerRegistryAccount(ctx, internal.Registry, GiteaAdminUser, creds.ForgeToken); err != nil {
return err
}

Expand All @@ -351,9 +351,11 @@ func (o *Orchestrator) setupPlatform(ctx context.Context, clients Clients, gitop
name, value string
secret bool
}{
// Named for Gitea still: the Actions of existing platforms read
// them (docs/decisions/0034-forgejo-lts-forge.md).
{"URBEX_GITEA_URL", internal.GiteaURL, false},
{"URBEX_GITEA_USER", GiteaAdminUser, false},
{"URBEX_GITEA_TOKEN", creds.GiteaToken, true},
{"URBEX_GITEA_TOKEN", creds.ForgeToken, true},
{"URBEX_ORG", o.Config.Git.Org, false},
// Where the reconciler sends its heartbeat and its errors, which
// Grafana alerts on.
Expand Down Expand Up @@ -422,7 +424,7 @@ func (o *Orchestrator) setupPlatform(ctx context.Context, clients Clients, gitop
return fmt.Errorf("writing .sops.yaml: %w", err)
}

if err := clients.SyncRepo(ctx, gitopsRepoPath, ep.RepoURL(o.Config.Git.Org, GitOpsRepoName), creds.GiteaToken, "urbex bootstrap"); err != nil {
if err := clients.SyncRepo(ctx, gitopsRepoPath, ep.RepoURL(o.Config.Git.Org, GitOpsRepoName), creds.ForgeToken, "urbex bootstrap"); err != nil {
return fmt.Errorf("syncing gitops repo: %w", err)
}
fmt.Fprintf(o.Out, "GitOps repo pushed to %s.\n", ep.RepoURL(o.Config.Git.Org, GitOpsRepoName))
Expand Down
4 changes: 2 additions & 2 deletions internal/bootstrap/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (o *Orchestrator) publishPlatform(ctx context.Context, clients Clients) err
}
}
fmt.Fprintf(o.Out, "Published on Cloudflare: Keycloak https://%s (its admin console behind Access), webhooks https://%s;\n", pub.Keycloak, pub.Hooks)
fmt.Fprintf(o.Out, "behind Access: Gitea https://%s, Komodo https://%s, Technitium https://%s, Grafana https://%s, Prometheus https://%s, Loki https://%s.\n",
fmt.Fprintf(o.Out, "behind Access: Forgejo https://%s, Komodo https://%s, Technitium https://%s, Grafana https://%s, Prometheus https://%s, Loki https://%s.\n",
pub.Gitea, pub.Komodo, pub.DNS, pub.Grafana, pub.Prometheus, pub.Loki)
return nil
}
Expand All @@ -195,7 +195,7 @@ func (o *Orchestrator) publishPlatform(ctx context.Context, clients Clients) err
func (o *Orchestrator) ensureOneTimePIN(ctx context.Context, cf CloudflareAPI) error {
ok, err := cf.HasOneTimePIN(ctx)
if cloudflare.Forbidden(err) {
fmt.Fprintln(o.Out, "Warning: the Cloudflare token can't read Zero Trust login methods; make sure One-time PIN is enabled (Zero Trust > Settings > Authentication), or nobody can log in through Access (Gitea, Komodo, Grafana, ...).")
fmt.Fprintln(o.Out, "Warning: the Cloudflare token can't read Zero Trust login methods; make sure One-time PIN is enabled (Zero Trust > Settings > Authentication), or nobody can log in through Access (Forgejo, Komodo, Grafana, ...).")
return nil
}
if err != nil || ok {
Expand Down
14 changes: 7 additions & 7 deletions internal/bootstrap/teardown.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ func (o *Orchestrator) Teardown(ctx context.Context, opts TeardownOptions) error
o.Progress.Begin(PhaseTeardownCheck)
// Gitea has the latest GitOps repo - for the last time.
repoURL := ep.RepoURL(o.Config.Git.Org, GitOpsRepoName)
if o.Credentials.GiteaToken != "" {
if err := clients.PullRepo(ctx, opts.GitOpsRepoPath, repoURL, o.Credentials.GiteaToken); err != nil {
fmt.Fprintf(o.Out, "Warning: could not update the GitOps repo from Gitea (%v); using the local copy.\n", err)
if o.Credentials.ForgeToken != "" {
if err := clients.PullRepo(ctx, opts.GitOpsRepoPath, repoURL, o.Credentials.ForgeToken); err != nil {
fmt.Fprintf(o.Out, "Warning: could not update the GitOps repo from Forgejo (%v); using the local copy.\n", err)
}
}

Expand All @@ -77,15 +77,15 @@ func (o *Orchestrator) Teardown(ctx context.Context, opts TeardownOptions) error

tfDir := filepath.Join(opts.GitOpsRepoPath, "terraform", "base")
var repos []string
if g, ok := clients.Gitea(ep.GiteaURL, o.Credentials.GiteaToken).(repoLister); ok && o.Credentials.GiteaToken != "" {
if g, ok := clients.Gitea(ep.GiteaURL, o.Credentials.ForgeToken).(repoLister); ok && o.Credentials.ForgeToken != "" {
repos, _ = g.ListOrgRepos(ctx, o.Config.Git.Org) // best effort: Gitea may already be gone
}
fmt.Fprintln(o.Out, "This destroys the Urbex platform on Proxmox:")
fmt.Fprintf(o.Out, " - the base-service LXCs and their disks: %s\n", strings.Join(baseHostnames(o.Config), ", "))
if len(repos) > 0 {
fmt.Fprintf(o.Out, " - everything on Gitea: %s, and their images - make sure the project repos live elsewhere too\n", strings.Join(repos, ", "))
fmt.Fprintf(o.Out, " - everything on Forgejo: %s, and their images - make sure the project repos live elsewhere too\n", strings.Join(repos, ", "))
} else {
fmt.Fprintln(o.Out, " - everything on Gitea: every repository and image - make sure the project repos live elsewhere too")
fmt.Fprintln(o.Out, " - everything on Forgejo: every repository and image - make sure the project repos live elsewhere too")
}
fmt.Fprintln(o.Out, " - Komodo's, Keycloak's and Grafana's configuration and data")
if o.Config.Cloudflare.Enabled() {
Expand Down Expand Up @@ -152,7 +152,7 @@ func (o *Orchestrator) Teardown(ctx context.Context, opts TeardownOptions) error
return fmt.Errorf("committing the gitops repo: %w", err)
}
fmt.Fprintln(o.Out, "Platform destroyed.")
fmt.Fprintf(o.Out, "Keep %s: 'urbex bootstrap' creates a new platform and pushes it to its Gitea.\n", opts.GitOpsRepoPath)
fmt.Fprintf(o.Out, "Keep %s: 'urbex bootstrap' creates a new platform and pushes it to its Forgejo.\n", opts.GitOpsRepoPath)
return nil
}

Expand Down
Loading
Loading