Skip to content

Commit 1cb8146

Browse files
refactor(web): migrate to cmd/web and consolidate go module (#251)
1 parent 79d719b commit 1cb8146

File tree

17 files changed

+18
-18
lines changed

17 files changed

+18
-18
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: ["main"]
66
paths:
7-
- "web/**"
7+
- "cmd/web/**"
88
workflow_dispatch:
99

1010
permissions:
@@ -28,15 +28,15 @@ jobs:
2828
- uses: actions/setup-go@v6
2929
with:
3030
go-version: ${{ env.go-version }}
31-
cache-dependency-path: web/go.sum
31+
cache-dependency-path: go.sum
3232

3333
- name: Build
3434
run: make web-build
3535

3636
- name: Upload artifact
3737
uses: actions/upload-pages-artifact@v4
3838
with:
39-
path: ./web/dist
39+
path: ./cmd/web/dist
4040

4141
deploy:
4242
runs-on: ubuntu-latest
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ system_specification:
66
objective: "A self-hosted observability hub orchestrated via OpenTofu (Terraform), demonstrating SRE and Platform Engineering principles through Go, Kubernetes (K3s), and OpenTelemetry."
77
stack: "Go (Goroutine), OpenTelemetry, Kubernetes (K3s), OpenTofu (Terraform), Grafana, Loki, Prometheus, Tempo, OpenBao, PostgreSQL"
88
pattern: "Pure Wrapper / Hybrid Orchestration (K3s + Systemd)"
9-
entry_point: "web/main.go"
9+
entry_point: "cmd/web/main.go"
1010
persistence_strategy: "PostgreSQL (TimescaleDB) on K3s with MinIO S3 backend"
1111
observability: "OpenTelemetry (OTLP/gRPC) with Prometheus, Tempo, and Loki"
1212
machine_registry: "/api/evolution-registry.json"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strings"
1212
"time"
1313

14-
"web/schema"
14+
"observability-hub/cmd/web/schema"
1515

1616
"gopkg.in/yaml.v3"
1717
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
"testing"
77

8-
"web/schema"
8+
"observability-hub/cmd/web/schema"
99
)
1010

1111
type MockFS struct {

web/main.go renamed to cmd/web/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"log"
66

7-
"web/generator"
7+
"observability-hub/cmd/web/generator"
88
)
99

1010
func main() {

0 commit comments

Comments
 (0)