Skip to content

Commit 16ea4d4

Browse files
committed
Enhance GitHub Actions workflow to support multi-architecture builds for agent-manager image
1 parent 6e51a35 commit 16ea4d4

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/build-agent-manager.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Push agent-manager Image
1+
name: Build and Push agent-manager Image (Multi-Arch)
22

33
on:
44
push:
@@ -18,12 +18,8 @@ jobs:
1818
with:
1919
submodules: false
2020

21-
- name: Debug agent-manager files
22-
run: |
23-
ls -la agent-manager
24-
ls -la agent-manager/src || echo "src not found"
25-
ls agent-manager/src/*.js 2>/dev/null || echo "No .js files"
26-
cat agent-manager/Dockerfile || echo "Dockerfile missing"
21+
- name: Set up QEMU for multi-arch builds
22+
uses: docker/setup-qemu-action@v3
2723

2824
- name: Set up Docker Buildx
2925
uses: docker/setup-buildx-action@v3
@@ -35,10 +31,13 @@ jobs:
3531
username: ${{ github.actor }}
3632
password: ${{ secrets.GITHUB_TOKEN }}
3733

38-
- name: Build and push agent-manager
34+
- name: Build and push multi-platform
3935
uses: docker/build-push-action@v6
4036
with:
4137
context: ./agent-manager
4238
file: ./agent-manager/Dockerfile
39+
platforms: linux/amd64,linux/arm64/v8
4340
push: true
44-
tags: ghcr.io/anentrypoint/agent-manager:latest
41+
tags: ghcr.io/anentrypoint/agent-manager:latest
42+
cache-from: type=gha
43+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)