Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

제품 릴리스를 채널에 추가

apollo-cli release-channel add는 하나 이상의 제품 릴리스를 지정 채널에 추가합니다. 직접 지정한 Maven 좌표, YAML 목록 파일, 배포 환경, 번들을 입력으로 사용할 수 있으며 여러 입력을 합치고 중복을 제거합니다.

실험 단계(Experimental)의 명령으로 V2 experimental commands 활성화가 필요합니다.

apollo-cli release-channel add <channel-name> [flags]
옵션의미
--maven-coordinate추가할 제품 릴리스 좌표. 반복 지정 가능
-f, --maven-coordinates-fileMaven 좌표 목록이 있는 YAML 파일
-e, --environment릴리스를 가져올 배포 환경
--bundle-rid릴리스를 가져올 번들 RID
--rationale추가 사유
-y, --yes모든 확인에 yes로 응답
--dry-run실제 추가 대신 제출할 좌표 출력
-h, --help명령 도움말

채널 소속을 갱신한 뒤 제출한 Maven 좌표를 출력합니다. 미리보기에서는 제출할 좌표를 보여줍니다.

예시

가상의 릴리스 두 개를 추가할 대상을 확인합니다.

./apollo-cli release-channel add REVIEW \
  --maven-coordinate "com.example:service-a:1.0.0" \
  --maven-coordinate "com.example:service-b:2.0.0" \
  --rationale "검토할 릴리스 추가" \
  --dry-run

파일 입력은 export로 만들 수 있습니다.

./apollo-cli release-channel add REVIEW \
  --maven-coordinates-file releases.yml \
  --rationale "파일에 지정한 릴리스 추가" \
  --dry-run

배포 환경과 실제 번들 RID를 함께 입력할 수도 있습니다.

./apollo-cli release-channel add REVIEW \
  --environment test-spoke \
  --bundle-rid "${BUNDLE_RID}" \
  --rationale "배포 환경과 번들의 릴리스 추가" \
  --dry-run

--yes는 확인 절차를 생략하는 효과가 있으므로 대상 범위를 먼저 확인해야 합니다.