mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-09-30 20:46:32 +00:00
ci: bootnode images go to ghcr.io/bootnode/bootnode (own org, not hanzoai)
bootnode is its own GitHub org — its images belong in its own GHCR namespace, per the never-mix-registries rule. This also removes cross-org friction: the repo's own GITHUB_TOKEN pushes to ghcr.io/bootnode/* (same org), so once the arcd App is on the bootnode org, build+push needs no cross-org token.
This commit is contained in:
@@ -162,7 +162,7 @@ spec:
|
||||
- name: ghcr-secret
|
||||
containers:
|
||||
- name: web
|
||||
image: ghcr.io/hanzoai/bootnode:web-latest
|
||||
image: ghcr.io/bootnode/bootnode:web-latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
@@ -181,7 +181,7 @@ def get_network_config(chain: str, network: str) -> NetworkConfig:
|
||||
class ImageConfig(BaseModel):
|
||||
"""Container image reference."""
|
||||
|
||||
repository: str = "ghcr.io/hanzoai/bootnode"
|
||||
repository: str = "ghcr.io/bootnode/bootnode"
|
||||
tag: str = "latest"
|
||||
pull_policy: str = "IfNotPresent"
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Usage:
|
||||
from bootnode.core.deploy import get_deployer, ServiceType
|
||||
|
||||
deployer = get_deployer()
|
||||
await deployer.deploy(ServiceType.API, "ghcr.io/hanzoai/bootnode:api-latest", replicas=2)
|
||||
await deployer.deploy(ServiceType.API, "ghcr.io/bootnode/bootnode:api-latest", replicas=2)
|
||||
status = await deployer.status(ServiceType.API)
|
||||
async for line in deployer.logs(ServiceType.API, tail=50):
|
||||
print(line)
|
||||
|
||||
@@ -60,12 +60,12 @@ class TestServiceStatus:
|
||||
ready_replicas=2,
|
||||
cpu_usage=25.5,
|
||||
memory_usage=512.0,
|
||||
image="ghcr.io/hanzoai/bootnode:api-latest",
|
||||
image="ghcr.io/bootnode/bootnode:api-latest",
|
||||
started_at="2024-01-15T10:00:00Z",
|
||||
)
|
||||
assert status.cpu_usage == 25.5
|
||||
assert status.memory_usage == 512.0
|
||||
assert status.image == "ghcr.io/hanzoai/bootnode:api-latest"
|
||||
assert status.image == "ghcr.io/bootnode/bootnode:api-latest"
|
||||
|
||||
|
||||
class TestDeployTarget:
|
||||
|
||||
@@ -10,12 +10,12 @@ images:
|
||||
- name: api
|
||||
context: ./api
|
||||
dockerfile: ./api/Dockerfile
|
||||
repo: ghcr.io/hanzoai/bootnode
|
||||
repo: ghcr.io/bootnode/bootnode
|
||||
tag-suffix: api
|
||||
- name: web
|
||||
context: ./web
|
||||
dockerfile: ./web/Dockerfile
|
||||
repo: ghcr.io/hanzoai/bootnode
|
||||
repo: ghcr.io/bootnode/bootnode
|
||||
tag-suffix: web
|
||||
|
||||
# Commands run on the arc runner after the image builds. Non-zero fails the run.
|
||||
|
||||
+5
-5
@@ -92,7 +92,7 @@ services:
|
||||
build:
|
||||
context: ../api
|
||||
dockerfile: Dockerfile
|
||||
image: ghcr.io/hanzoai/bootnode:api-latest
|
||||
image: ghcr.io/bootnode/bootnode:api-latest
|
||||
container_name: bootnode-api
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
@@ -134,7 +134,7 @@ services:
|
||||
build:
|
||||
context: ../indexer
|
||||
dockerfile: Dockerfile
|
||||
image: ghcr.io/hanzoai/bootnode:indexer-latest
|
||||
image: ghcr.io/bootnode/bootnode:indexer-latest
|
||||
container_name: bootnode-indexer
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
@@ -173,7 +173,7 @@ services:
|
||||
build:
|
||||
context: ../api
|
||||
dockerfile: Dockerfile
|
||||
image: ghcr.io/hanzoai/bootnode:api-latest
|
||||
image: ghcr.io/bootnode/bootnode:api-latest
|
||||
container_name: bootnode-webhook-worker
|
||||
restart: unless-stopped
|
||||
command: ["python", "-m", "bootnode.workers.webhook"]
|
||||
@@ -195,7 +195,7 @@ services:
|
||||
build:
|
||||
context: ../bundler
|
||||
dockerfile: Dockerfile
|
||||
image: ghcr.io/hanzoai/bootnode:bundler-latest
|
||||
image: ghcr.io/bootnode/bootnode:bundler-latest
|
||||
container_name: bootnode-bundler
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
@@ -220,7 +220,7 @@ services:
|
||||
build:
|
||||
context: ../web
|
||||
dockerfile: Dockerfile
|
||||
image: ghcr.io/hanzoai/bootnode:web-latest
|
||||
image: ghcr.io/bootnode/bootnode:web-latest
|
||||
container_name: bootnode-web
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
|
||||
@@ -29,7 +29,7 @@ spec:
|
||||
serviceAccountName: bootnode-api
|
||||
containers:
|
||||
- name: api
|
||||
image: ghcr.io/hanzoai/bootnode:latest
|
||||
image: ghcr.io/bootnode/bootnode:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
@@ -214,7 +214,7 @@ spec:
|
||||
spec:
|
||||
initContainers:
|
||||
- name: db-migrate
|
||||
image: ghcr.io/hanzoai/bootnode:api-latest
|
||||
image: ghcr.io/bootnode/bootnode:api-latest
|
||||
command: ["python", "-m", "alembic", "upgrade", "head"]
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
@@ -223,7 +223,7 @@ spec:
|
||||
name: bootnode-secrets
|
||||
containers:
|
||||
- name: api
|
||||
image: ghcr.io/hanzoai/bootnode:api-latest
|
||||
image: ghcr.io/bootnode/bootnode:api-latest
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
name: http
|
||||
@@ -290,7 +290,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: web
|
||||
image: ghcr.io/hanzoai/bootnode:web-latest
|
||||
image: ghcr.io/bootnode/bootnode:web-latest
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
env:
|
||||
|
||||
@@ -28,7 +28,7 @@ spec:
|
||||
serviceAccountName: bootnode-operator
|
||||
containers:
|
||||
- name: operator
|
||||
image: ghcr.io/hanzoai/bootnode:operator-2.0.0
|
||||
image: ghcr.io/bootnode/bootnode:operator-2.0.0
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: OPERATOR_NAMESPACE
|
||||
|
||||
@@ -26,7 +26,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: docs
|
||||
image: ghcr.io/hanzoai/bootnode-docs:latest
|
||||
image: ghcr.io/bootnode/bootnode-docs:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
@@ -26,7 +26,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: api
|
||||
image: ghcr.io/hanzoai/bootnode:latest
|
||||
image: ghcr.io/bootnode/bootnode:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
@@ -26,7 +26,7 @@ spec:
|
||||
serviceAccountName: bootnode-indexer
|
||||
containers:
|
||||
- name: indexer
|
||||
image: ghcr.io/hanzoai/bootnode:indexer-latest
|
||||
image: ghcr.io/bootnode/bootnode:indexer-latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
@@ -19,7 +19,7 @@ spec:
|
||||
serviceAccountName: bootnode-operator
|
||||
containers:
|
||||
- name: operator
|
||||
image: ghcr.io/hanzoai/bootnode:operator-latest
|
||||
image: ghcr.io/bootnode/bootnode:operator-latest
|
||||
args:
|
||||
- "--namespace"
|
||||
- "" # watch all namespaces
|
||||
|
||||
@@ -30,7 +30,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: web
|
||||
image: ghcr.io/hanzoai/bootnode-web:latest
|
||||
image: ghcr.io/bootnode/bootnode-web:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
@@ -126,7 +126,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: web
|
||||
image: ghcr.io/hanzoai/bootnode-web:latest
|
||||
image: ghcr.io/bootnode/bootnode-web:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
@@ -222,7 +222,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: web
|
||||
image: ghcr.io/hanzoai/bootnode-web:latest
|
||||
image: ghcr.io/bootnode/bootnode-web:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
@@ -318,7 +318,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: web
|
||||
image: ghcr.io/hanzoai/bootnode-web:latest
|
||||
image: ghcr.io/bootnode/bootnode-web:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
|
||||
Reference in New Issue
Block a user