diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 64aa064..bc62df3 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -13,7 +13,7 @@ jobs: - name: build base image run: | - IMG=registry.127-0-0-1.nip.io/a2a/a2a-pack-base + IMG=registry.a2acloud.io/a2a/a2a-pack-base VERSION=$(grep '^version' pyproject.toml | head -1 | cut -d'"' -f2) docker build -t $IMG:$VERSION -t $IMG:${{ github.sha }} -t $IMG:latest . docker push $IMG:$VERSION diff --git a/.gitignore b/.gitignore index 8751971..5b1e27b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ __pycache__ *.egg-info dist build +node_modules diff --git a/a2a_pack/cli/credentials.py b/a2a_pack/cli/credentials.py index 7bbc272..695e7d4 100644 --- a/a2a_pack/cli/credentials.py +++ b/a2a_pack/cli/credentials.py @@ -6,7 +6,7 @@ import os from dataclasses import dataclass from pathlib import Path -DEFAULT_API_URL = "http://api.127-0-0-1.nip.io" +DEFAULT_API_URL = "http://api.a2acloud.io" def _config_dir() -> Path: diff --git a/a2a_pack/cli/main.py b/a2a_pack/cli/main.py index ba533c3..15737db 100644 --- a/a2a_pack/cli/main.py +++ b/a2a_pack/cli/main.py @@ -29,7 +29,7 @@ app = typer.Typer( ) console = Console() -DEFAULT_REGISTRY_HOST = "localhost:30500" +DEFAULT_REGISTRY_HOST = "registry.a2acloud.io" SDK_PYPI_PACKAGE = "a2a_pack" diff --git a/a2a_pack/cli/manifests.py b/a2a_pack/cli/manifests.py index 9eaf2ac..a44616c 100644 --- a/a2a_pack/cli/manifests.py +++ b/a2a_pack/cli/manifests.py @@ -1,7 +1,7 @@ """Generate Kubernetes manifests for a deployed agent. Targets the existing local cluster: namespace ``agents``, registry at -``localhost:30500``, traefik ingress at ``.127-0-0-1.nip.io``. +``registry.a2acloud.io``, traefik ingress at ``.a2acloud.io``. """ from __future__ import annotations @@ -12,7 +12,7 @@ import yaml from ..agent import A2AAgent NAMESPACE = "agents" -INGRESS_HOST_TEMPLATE = "{name}.127-0-0-1.nip.io" +INGRESS_HOST_TEMPLATE = "{name}.a2acloud.io" def render_manifests( diff --git a/a2a_pack/cli/templates/Dockerfile.tmpl b/a2a_pack/cli/templates/Dockerfile.tmpl index 397f3b6..ec76dc1 100644 --- a/a2a_pack/cli/templates/Dockerfile.tmpl +++ b/a2a_pack/cli/templates/Dockerfile.tmpl @@ -1,4 +1,4 @@ -FROM registry.127-0-0-1.nip.io/a2a/a2a-pack-base:latest +FROM registry.a2acloud.io/a2a/a2a-pack-base:latest WORKDIR /app diff --git a/a2a_pack/cli/templates/deployment.yaml.tmpl b/a2a_pack/cli/templates/deployment.yaml.tmpl index 4cde4c7..21f9fcc 100644 --- a/a2a_pack/cli/templates/deployment.yaml.tmpl +++ b/a2a_pack/cli/templates/deployment.yaml.tmpl @@ -21,7 +21,7 @@ spec: containers: - name: agent # tag is rewritten by the build workflow on every push - image: registry.127-0-0-1.nip.io/agents/{{ name }}:latest + image: registry.a2acloud.io/agents/{{ name }}:latest imagePullPolicy: Always ports: - containerPort: 8000 @@ -59,7 +59,7 @@ metadata: namespace: agents spec: rules: - - host: {{ name }}.127-0-0-1.nip.io + - host: {{ name }}.a2acloud.io http: paths: - path: / diff --git a/a2a_pack/cli/templates/workflow.yml.tmpl b/a2a_pack/cli/templates/workflow.yml.tmpl index efb62d6..d474eff 100644 --- a/a2a_pack/cli/templates/workflow.yml.tmpl +++ b/a2a_pack/cli/templates/workflow.yml.tmpl @@ -15,14 +15,14 @@ jobs: - name: build image run: | - IMG=registry.127-0-0-1.nip.io/agents/{{ name }} + IMG=registry.a2acloud.io/agents/{{ name }} docker build -t "$IMG:$GITHUB_SHA" -t "$IMG:latest" . docker push "$IMG:$GITHUB_SHA" docker push "$IMG:latest" - name: bump deploy manifest run: | - IMG=registry.127-0-0-1.nip.io/agents/{{ name }} + IMG=registry.a2acloud.io/agents/{{ name }} sed -i "s|image: $IMG:.*|image: $IMG:$GITHUB_SHA|" deploy/20-deployment.yaml git config user.email "ci@a2a.local" git config user.name "ci"