switch to a2acloud.io
All checks were successful
build / build (push) Successful in 1m15s

This commit is contained in:
robert
2026-05-09 22:13:27 -03:00
parent 2dcb8a09cd
commit 4ba732f685
8 changed files with 11 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ jobs:
- name: build base image - name: build base image
run: | 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) VERSION=$(grep '^version' pyproject.toml | head -1 | cut -d'"' -f2)
docker build -t $IMG:$VERSION -t $IMG:${{ github.sha }} -t $IMG:latest . docker build -t $IMG:$VERSION -t $IMG:${{ github.sha }} -t $IMG:latest .
docker push $IMG:$VERSION docker push $IMG:$VERSION

1
.gitignore vendored
View File

@@ -5,4 +5,5 @@ __pycache__
*.egg-info *.egg-info
dist dist
build build
node_modules

View File

@@ -6,7 +6,7 @@ import os
from dataclasses import dataclass from dataclasses import dataclass
from pathlib import Path 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: def _config_dir() -> Path:

View File

@@ -29,7 +29,7 @@ app = typer.Typer(
) )
console = Console() console = Console()
DEFAULT_REGISTRY_HOST = "localhost:30500" DEFAULT_REGISTRY_HOST = "registry.a2acloud.io"
SDK_PYPI_PACKAGE = "a2a_pack" SDK_PYPI_PACKAGE = "a2a_pack"

View File

@@ -1,7 +1,7 @@
"""Generate Kubernetes manifests for a deployed agent. """Generate Kubernetes manifests for a deployed agent.
Targets the existing local cluster: namespace ``agents``, registry at Targets the existing local cluster: namespace ``agents``, registry at
``localhost:30500``, traefik ingress at ``<name>.127-0-0-1.nip.io``. ``registry.a2acloud.io``, traefik ingress at ``<name>.a2acloud.io``.
""" """
from __future__ import annotations from __future__ import annotations
@@ -12,7 +12,7 @@ import yaml
from ..agent import A2AAgent from ..agent import A2AAgent
NAMESPACE = "agents" NAMESPACE = "agents"
INGRESS_HOST_TEMPLATE = "{name}.127-0-0-1.nip.io" INGRESS_HOST_TEMPLATE = "{name}.a2acloud.io"
def render_manifests( def render_manifests(

View File

@@ -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 WORKDIR /app

View File

@@ -21,7 +21,7 @@ spec:
containers: containers:
- name: agent - name: agent
# tag is rewritten by the build workflow on every push # 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 imagePullPolicy: Always
ports: ports:
- containerPort: 8000 - containerPort: 8000
@@ -59,7 +59,7 @@ metadata:
namespace: agents namespace: agents
spec: spec:
rules: rules:
- host: {{ name }}.127-0-0-1.nip.io - host: {{ name }}.a2acloud.io
http: http:
paths: paths:
- path: / - path: /

View File

@@ -15,14 +15,14 @@ jobs:
- name: build image - name: build image
run: | 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 build -t "$IMG:$GITHUB_SHA" -t "$IMG:latest" .
docker push "$IMG:$GITHUB_SHA" docker push "$IMG:$GITHUB_SHA"
docker push "$IMG:latest" docker push "$IMG:latest"
- name: bump deploy manifest - name: bump deploy manifest
run: | 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 sed -i "s|image: $IMG:.*|image: $IMG:$GITHUB_SHA|" deploy/20-deployment.yaml
git config user.email "ci@a2a.local" git config user.email "ci@a2a.local"
git config user.name "ci" git config user.name "ci"