diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 941bee4b0..5ea2d29ac 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -30,6 +30,17 @@ jobs: with: fetch-depth: 1 + - name: Debug Environment + run: | + echo "=== Environment Debug ===" + echo "GITHUB_ACTOR: $GITHUB_ACTOR" + echo "GITHUB_REPOSITORY: $GITHUB_REPOSITORY" + echo "GITHUB_REPOSITORY_OWNER: $GITHUB_REPOSITORY_OWNER" + echo "GITHUB_TOKEN exists: $([ -n "$GITHUB_TOKEN" ] && echo "yes" || echo "no")" + echo "=== Docker Info ===" + docker --version + docker info + - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -37,6 +48,19 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Test Docker Pull + run: | + echo "=== Testing Docker Pull ===" + echo "Attempting to pull image: ghcr.io/mervinpraison/praisonai-claudecode:latest" + docker pull ghcr.io/mervinpraison/praisonai-claudecode:latest || echo "Pull failed with exit code: $?" + echo "=== Checking Docker Images ===" + docker images | grep praisonai-claudecode || echo "No images found" + + - name: Test Manual Docker Run + run: | + echo "=== Testing Manual Docker Run ===" + docker run --rm ghcr.io/mervinpraison/praisonai-claudecode:latest echo "Container started successfully" || echo "Manual run failed with exit code: $?" + - name: Run Claude Code id: claude uses: ./.github/actions/claude-code-action