This repository was archived by the owner on Apr 24, 2026. It is now read-only.
Build and Push agent-manager Image (Multi-Arch) #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Push agent-manager Image | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: false # Skip automatic submodule init | |
| - name: Manually init and update submodules | |
| run: | | |
| git submodule sync --recursive | |
| git config --global url."git://github.com/".insteadOf "https://github.com/" # Use git:// for anonymous clone (no auth prompt) | |
| git submodule update --init --recursive --force | |
| - name: Debug context | |
| run: | | |
| ls -la . | |
| ls -la agent-manager || echo "agent-manager missing!" | |
| ls -la agent-manager/src || echo "src missing or empty!" | |
| ls -la agent-manager/src/*.js 2>/dev/null || echo "No JS files found in src" | |
| cat agent-manager/package.json || echo "package.json not found" | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to GHCR | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: ./agent-manager | |
| file: ./agent-manager/Dockerfile | |
| push: true | |
| tags: ghcr.io/anentrypoint/agent-manager:latest | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |