This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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: /
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user