본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

drone repo update

원문 보기 위키 갱신

이 서브커맨드는 지정한 저장소를 업데이트해요. 이 명령은 저장소에 대한 쓰기 권한을 필요로 한다는 점에 유의하세요.

출처: Drone CI Docs

본문

NAME:
   drone repo update - update a repository

USAGE:
   drone repo update [command options] <repo/name>

OPTIONS:
   --trusted                    repository is trusted
   --protected                  repository is protected
   --timeout value              repository timeout (default: 0s)
   --visibility value           repository visibility
   --ignore-forks               ignore forks
   --ignore-pull-requests       ignore pull requests
   --auto-cancel-pull-requests  automatically cancel pending pull request builds
   --auto-cancel-pushes         automatically cancel pending push builds
   --auto-cancel-running        automatically cancel running builds if newer commit pushed
   --config value               repository configuration path (e.g. .drone.yml)
   --build-counter value        repository starting build number (default: 0)
   --unsafe                     validate updating the build-counter is unsafe

trusted 플래그를 업데이트하는 명령 예제:

$ drone repo update octocat/hello-world --trusted=true

protected 플래그를 업데이트하는 명령 예제:

$ drone repo update octocat/hello-world --protected=true

타임아웃 값을 업데이트하는 명령 예제:

$ drone repo update octocat/hello-world --timeout=90m

drone.yml 파일 경로를 업데이트하는 명령 예제:

$ drone repo update octocat/hello-world --config=.github/.drone.yml

현재 빌드 번호를 업데이트하는 명령 예제:

$ drone repo update octocat/hello-world --build-counter=10 --unsafe

자동 취소 플래그를 업데이트하는 명령 예제:

$ drone repo update octocat/hello-world --auto-cancel-pushes=true
$ drone repo update octocat/hello-world --auto-cancel-pull-requests=true