This repository was archived by the owner on Apr 24, 2026. It is now read-only.
Refactor GitHub Actions workflow to enhance debugging steps for agent… #7
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 | |
| - name: Debug agent-manager files | |
| run: | | |
| ls -la agent-manager | |
| ls -la agent-manager/src || echo "src not found" | |
| ls agent-manager/src/*.js 2>/dev/null || echo "No .js files" | |
| cat agent-manager/Dockerfile || echo "Dockerfile missing" | |
| - 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 agent-manager | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: ./agent-manager | |
| file: ./agent-manager/Dockerfile | |
| push: true | |
| tags: ghcr.io/anentrypoint/agent-manager:latest |