Skip to content

Commit 8b64991

Browse files
committed
e2e: Build image in separate step
This makes the workflow more readable
1 parent 03ad0e6 commit 8b64991

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ jobs:
8585
kubectl rollout status deployment/agent-sandbox-controller -n agent-sandbox-system --timeout=120s
8686
kubectl wait --for=condition=Ready pod -l app=agent-sandbox-controller -n agent-sandbox-system --timeout=120s
8787
88+
- name: Build kagent
89+
env:
90+
BUILDX_BUILDER_NAME: ${{ env.BUILDX_BUILDER_NAME }}
91+
DOCKER_BUILD_ARGS: >-
92+
--cache-from=type=gha,scope=${{ needs.setup.outputs.cache-key }}-e2e
93+
--cache-from=type=gha,scope=${{ env.CACHE_KEY_PREFIX }}-main-e2e
94+
--cache-to=type=gha,scope=${{ needs.setup.outputs.cache-key }}-e2e,mode=max
95+
--platform=linux/amd64
96+
--push
97+
run: make build
98+
8899
- name: Install Kagent
89100
id: install-kagent
90101
env:
@@ -98,7 +109,6 @@ jobs:
98109
--platform=linux/amd64
99110
--push
100111
run: |
101-
echo "Cache key: ${{ needs.setup.outputs.cache-key }}"
102112
make helm-install
103113
make push-test-agent push-test-skill
104114
kubectl rollout status deployment/kagent-controller -n kagent --timeout=120s
@@ -304,7 +314,7 @@ jobs:
304314
go-version: "1.26"
305315
cache: true
306316
cache-dependency-path: go/go.sum
307-
- name: golangci-lint
317+
- name: golangci-lint
308318
working-directory: go
309319
run: make lint
310320

0 commit comments

Comments
 (0)