Skip to content

Commit dd01bdb

Browse files
committed
fix(ci): skip building agents
Signed-off-by: Jan Pokorný <JenomPokorny@gmail.com>
1 parent 024a5fd commit dd01bdb

1 file changed

Lines changed: 66 additions & 64 deletions

File tree

.github/workflows/release.yml

Lines changed: 66 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -11,69 +11,69 @@ permissions:
1111
id-token: write
1212

1313
jobs:
14-
agents:
15-
runs-on: ubuntu-latest
16-
environment: release
17-
strategy:
18-
matrix:
19-
agent:
20-
- chat
21-
- rag
22-
- form
23-
- canvas
24-
steps:
25-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
26-
- id: version
27-
run: |
28-
echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
29-
echo "latestTag=$([[ ${GITHUB_REF#refs/tags/v} =~ [a-zA-Z] ]] && echo prerelease || echo latest)" >> $GITHUB_OUTPUT
30-
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
31-
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
32-
with:
33-
registry: ghcr.io
34-
username: ${{ github.actor }}
35-
password: ${{ secrets.GITHUB_TOKEN }}
36-
- uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
37-
with:
38-
context: .
39-
file: ./agents/${{ matrix.agent }}/Dockerfile
40-
push: false
41-
load: true
42-
build-args: |
43-
RELEASE_VERSION=${{ github.ref_name }}
44-
tags: tmp-agent-image
45-
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:cache
46-
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:cache,mode=max
47-
- id: agent-manifest
48-
run: |
49-
set -e
50-
docker run -d --rm --name=tmp-agent -p 8000:8000 -e HOST=0.0.0.0 -e PORT=8000 tmp-agent-image
51-
success=0
52-
for i in {1..30}; do
53-
echo "Extracting manifest: attempt $i"
54-
response=$(curl http://localhost:8000/.well-known/agent-card.json 2>/dev/null) && success=1 && break
55-
sleep 0.5
56-
done
57-
[[ "$success" == 1 ]] || (echo "Failed to discover agents" && exit 1)
58-
docker kill tmp-agent
59-
AGENT_MANIFEST=$(echo "$response" | base64 -w 0)
60-
echo "content=$AGENT_MANIFEST" >> $GITHUB_OUTPUT
61-
- uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
62-
with:
63-
context: .
64-
file: ./agents/${{ matrix.agent }}/Dockerfile
65-
push: true
66-
platforms: linux/amd64,linux/arm64
67-
build-args: |
68-
RELEASE_VERSION=${{ github.ref_name }}
69-
tags: |
70-
ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:${{ github.sha }}
71-
ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:${{ steps.version.outputs.version }}
72-
ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:${{ steps.version.outputs.latestTag }}
73-
labels: |
74-
kagenti.dev.agent.json=${{ steps.agent-manifest.outputs.content }}
75-
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:cache
76-
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:cache,mode=max
14+
# agents:
15+
# runs-on: ubuntu-latest
16+
# environment: release
17+
# strategy:
18+
# matrix:
19+
# agent:
20+
# - chat
21+
# - rag
22+
# - form
23+
# - canvas
24+
# steps:
25+
# - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
26+
# - id: version
27+
# run: |
28+
# echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
29+
# echo "latestTag=$([[ ${GITHUB_REF#refs/tags/v} =~ [a-zA-Z] ]] && echo prerelease || echo latest)" >> $GITHUB_OUTPUT
30+
# - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
31+
# - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
32+
# with:
33+
# registry: ghcr.io
34+
# username: ${{ github.actor }}
35+
# password: ${{ secrets.GITHUB_TOKEN }}
36+
# - uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
37+
# with:
38+
# context: .
39+
# file: ./agents/${{ matrix.agent }}/Dockerfile
40+
# push: false
41+
# load: true
42+
# build-args: |
43+
# RELEASE_VERSION=${{ github.ref_name }}
44+
# tags: tmp-agent-image
45+
# cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:cache
46+
# cache-to: type=registry,ref=ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:cache,mode=max
47+
# - id: agent-manifest
48+
# run: |
49+
# set -e
50+
# docker run -d --rm --name=tmp-agent -p 8000:8000 -e HOST=0.0.0.0 -e PORT=8000 tmp-agent-image
51+
# success=0
52+
# for i in {1..30}; do
53+
# echo "Extracting manifest: attempt $i"
54+
# response=$(curl http://localhost:8000/.well-known/agent-card.json 2>/dev/null) && success=1 && break
55+
# sleep 0.5
56+
# done
57+
# [[ "$success" == 1 ]] || (echo "Failed to discover agents" && exit 1)
58+
# docker kill tmp-agent
59+
# AGENT_MANIFEST=$(echo "$response" | base64 -w 0)
60+
# echo "content=$AGENT_MANIFEST" >> $GITHUB_OUTPUT
61+
# - uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
62+
# with:
63+
# context: .
64+
# file: ./agents/${{ matrix.agent }}/Dockerfile
65+
# push: true
66+
# platforms: linux/amd64,linux/arm64
67+
# build-args: |
68+
# RELEASE_VERSION=${{ github.ref_name }}
69+
# tags: |
70+
# ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:${{ github.sha }}
71+
# ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:${{ steps.version.outputs.version }}
72+
# ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:${{ steps.version.outputs.latestTag }}
73+
# labels: |
74+
# kagenti.dev.agent.json=${{ steps.agent-manifest.outputs.content }}
75+
# cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:cache
76+
# cache-to: type=registry,ref=ghcr.io/${{ github.repository }}/agents/${{ matrix.agent }}:cache,mode=max
7777

7878
vm:
7979
environment: release
@@ -106,7 +106,9 @@ jobs:
106106
${{ matrix.arch == 'x86_64' && format('apps/microshift-vm/dist/{0}/microshift-vm-{0}.wsl', matrix.arch) || '' }}
107107
108108
adk:
109-
needs: [agents, vm]
109+
needs:
110+
- vm
111+
# - agents
110112
runs-on: ubuntu-latest
111113
environment: release
112114
env:

0 commit comments

Comments
 (0)