플랫폼에서 에이전트 이미지를 패키징하고 빌드합니다.
Synopsis
현재 디렉토리에서 소스 보관 파일을 생성하고 업로드한 다음, ECR 이미지를 생성하는 CodeBuild 빌드를 trigger합니다.
이 명령은 소스 보관 파일을 업로드하므로 로컬 에이전트 디렉토리가 필요합니다. --workspace-id만으로는 이를 대체할 수 없습니다. 로컬 소스 없이 릴리스를 다시 빌드하려면 agentengine build --version <version> --workspace-id <id>을(를) 사용하세요. 그렇지 않으면 작업 영역 ID는 agentengine init이(가) 작성한 .agentengine/상태.json에서 가져옵니다.
--upload-build-secrets 선택 사항입니다. 동일한 이름의 환경 변수에서 각 agent.yaml artifact_repositories[].secret을 읽고, 빌드가 시작되기 전에 선언된 범위에서 업로드하며, agent.yaml에서 선언하지 않은 환경 변수는 읽지 않습니다. 그렇지 않으면 agentengine secret set <NAME>을 사용하여 자격 증명을 한 번 저장합니다. 프로젝트 범위의 비밀을 업로드하려면 PROJECT_OWNER 또는 ORG_ADMIN이 필요하며, 작업 영역 범위의 비밀을 업로드하려면 PROJECT_OWNER 또는 AGENT_DEVELOPER가 필요합니다.
export ARTIFACT_REPO_CORPS_PYPI_TOKEN="$(aws codeartifact get-authorization-token ...)"agentengine build --upload-build-secretsagentengine build [flags]옵션
--all Monorepo: build all workspaces sequentially --base-url string Platform base URL --context string Named context to target (see 'agentengine context list')-h, --help help for build --json Output build result as JSON --label string Human-readable build label (default: git branch@sha12) --no-wait Return immediately after starting the build without polling --org-id string Organization ID --project-id string Project ID --release Mark this build as a release of the version declared in agent.yaml, addressable by 'agentengine deploy --version' --upload-build-secrets Optional: before building, upload each agent.yaml artifact_repositories[].secret from the same-named environment variable-v, --verbose Print every file added to the source archive --version string Always start a new build of the release for this declared agent.yaml version, at its pinned commit and skipping archive upload (mutually exclusive with --workspace/--all) --workspace string Monorepo: build a specific workspace by name (from root agent.yaml) --workspace-id string Workspace ID부모 명령에서 상속된 옵션
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error다음도 참조하세요.
agentengine - 에이전트 엔진 로컬 개발 CLI.
agentengine 빌드 cancel - 실행 중이거나 대기 중인 빌드를 취소합니다.
agentengine 빌드 list - 워크스페이스의 빌드 목록을 확인합니다.
agentengine 빌드 로그 - 빌드 로그를 표준 출력으로 스트리밍합니다.
agentengine 빌드 promote - 성공한 빌드를 다른 워크스페이스로 승격합니다.