다음을 통해 공유


resources.containers.container.trigger 정의

컨테이너 리소스에 대한 트리거 조건을 지정합니다.

이 정의를 참조하는 정의: resources.containers.container

구현

구현 설명
trigger: enabled, tags 트리거할 태그 목록을 지정합니다.
trigger: none | 사실 모든 이미지 태그에서 트리거하려면 사용하지 않도록 설정하거나 true로 지정합니다.

설명

사용하지 않도록 설정할 없음을 지정하거나, 모든 이미지 태그에서 트리거하려면 true를 지정하거나, 다음 예제에 설명된 대로 전체 구문을 사용합니다.

trigger: enabled, tags

실행을 트리거하는 태그를 구성합니다.

trigger:
  enabled: boolean # Whether the trigger is enabled; defaults to true.
  tags: includeExcludeStringFilters | [ string ] # Tag names to include or exclude for triggering a run.

속성

enabled부울입니다.
트리거를 사용할 수 있는지 여부 기본값은 true입니다.

tagsincludeExcludeStringFilters.
실행을 트리거하기 위해 포함하거나 제외할 태그 이름입니다.

예제

다음 예제에서는 태그 일치 production*에 대해 트리거를 사용하도록 설정됩니다.

resources:         
  containers:
  - container: petStore      
    type: ACR  
    azureSubscription: ContosoARMConnection
    resourceGroup: ContosoGroup
    registry: petStoreRegistry
    repository: myPets
    trigger: 
      tags:
        include: 
        - production*

trigger: none | 사실

모든 이미지 태그에서 트리거하려면 사용하지 않도록 설정하거나 true로 지정합니다.

trigger: none | true # Specify none to disable or true to trigger on all image tags.

trigger 문자열. 허용되는 값: none | 사실.

모든 이미지 태그에서 트리거하려면 사용하지 않도록 설정하거나 true로 지정합니다.

설명

트리거를 사용하지 않도록 설정하거나 true 사용하도록 지정 none 합니다. 지정되지 않은 경우 기본값은 none입니다. 특정 태그를 기반으로 트리거를 구성하려면 다음 섹션을 참조하세요.

resources:         
  containers:
  - container: petStore      
    type: ACR  
    azureSubscription: ContosoARMConnection
    resourceGroup: ContosoGroup
    registry: petStoreRegistry
    repository: myPets
    trigger: 
      tags: none # Triggers disabled
resources:         
  containers:
  - container: petStore      
    type: ACR  
    azureSubscription: ContosoARMConnection
    resourceGroup: ContosoGroup
    registry: petStoreRegistry
    repository: myPets
    trigger: 
      tags: true # Triggers enabled for all tags

참고 항목