CI/CD#002

GitHub Actions 작업 무한 대기로 인한 러너 점유

github-actionstimeoutrunnercost

상황

GitHub Actions를 사용하여 배포 파이프라인을 운영 중입니다. 최근 deploy 작업이 간헐적으로 멈추면서 러너가 6시간 동안 점유되고, 다른 작업이 큐에 밀려 팀 전체 CI/CD가 지연되고 있습니다. 워크플로우 설정을 확인하여 원인을 분석하고 해결하세요.

제공 데이터

name: Deploy

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Deploy to production
        run: ./scripts/long-running-task.sh

      - name: Notify Slack
        run: |
          curl -X POST "$SLACK_WEBHOOK" \
            -d '{"text": "Deployment completed"}'
해결 노트