Skip to content

ci: build-and-push 워크플로우에 fetch_cli.py 실행 옵션을 추가합니다#891

Merged
jk-kim0 merged 4 commits intomainfrom
jk/ci-fetch-cli-option-in-build-workflow
Mar 9, 2026
Merged

ci: build-and-push 워크플로우에 fetch_cli.py 실행 옵션을 추가합니다#891
jk-kim0 merged 4 commits intomainfrom
jk/ci-fetch-cli-option-in-build-workflow

Conversation

@jk-kim0
Copy link
Copy Markdown
Contributor

@jk-kim0 jk-kim0 commented Mar 9, 2026

Description

  • Dockerfile Stage 1의 fetch_cli.py 인자를 ARG FETCH_ARGS로 파라미터화합니다.
  • workflow_dispatch 수동 실행 시 fetch 방식을 선택할 수 있습니다.
    • --recent --attachments (기본값) — fetch_state.yaml의 마지막 수집 시점 이후 변경 페이지만 수집
    • --remote --attachments — 전체 페이지 트리를 API로 다시 수집
  • push / pull_request 자동 트리거 시에는 기본값 --recent --attachments가 적용됩니다.
  • --build-arg "FETCH_ARGS=..." 로 Dockerfile에 전달되어 이미지에 결과가 반영됩니다.

Added/updated tests?

  • No, and this is why: CI 워크플로우 및 Dockerfile 설정 변경으로 별도 테스트 불필요

Additional notes

  • Confluence 공간(QM)은 공개 접근 가능하므로 인증 없이 API 호출이 성공합니다.

- workflow_dispatch inputs에 fetch_arguments 선택 옵션 추가
  - '--recent --attachments' (기본값)
  - '--remote --attachments'
- Push 완료 후 선택한 인자로 fetch_cli.py를 실행하는 스텝 추가
- workflow_dispatch 실행 시에만 fetch 스텝이 동작하도록 조건 설정

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
querypie-docs Ready Ready Preview, Comment Mar 9, 2026 5:01am

Request Review

- Run fetch_cli.py 스텝의 workflow_dispatch 전용 조건을 제거합니다
- push/pull_request 트리거 시 inputs.fetch_arguments가 없으므로
  '${{ inputs.fetch_arguments || '--recent --attachments' }}' 로 기본값을 보장합니다
- fetch_state.yaml은 Dockerfile Stage 1에서 cache/ → var/ 복사 및 fetch 실행 후
  Stage 2에서 COPY --from=builder 로 최종 이미지에 포함됨을 확인하였습니다

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jk-kim0 and others added 2 commits March 9, 2026 13:57
- fetch_cli.py 실행은 Dockerfile Stage 1에서 이미 처리되므로 워크플로우 스텝 불필요
- 추가한 workflow_dispatch inputs(fetch_arguments) 및 Run fetch_cli.py 스텝을 원복합니다

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Dockerfile Stage 1의 fetch_cli.py 인자를 ARG FETCH_ARGS로 파라미터화합니다
  - 기본값: --recent --attachments (증분 수집)
  - 선택: --remote --attachments (전체 수집)
- workflow_dispatch inputs에 fetch_arguments 옵션을 추가합니다
- Build Docker image 스텝에서 --build-arg로 FETCH_ARGS를 전달합니다
- push/pull_request 자동 트리거 시에는 기본값 --recent --attachments가 적용됩니다

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jk-kim0 jk-kim0 merged commit 36de5b0 into main Mar 9, 2026
7 checks passed
@jk-kim0 jk-kim0 deleted the jk/ci-fetch-cli-option-in-build-workflow branch March 9, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants