Επεξεργασία

Κοινή χρήση μέσω


resources.containers.container.trigger definition

Specifies the trigger conditions for a container resource.

Definitions that reference this definition: resources.containers.container

Implementations

Implementation Description
trigger: enabled, tags Specify a list of tags to trigger on.
trigger: none | true Specify none to disable or true to trigger on all image tags.

Remarks

Specify none to disable, true to trigger on all image tags, or use the full syntax as described in the following examples.

trigger: enabled, tags

Configure which tags trigger a run.

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

Properties

enabled boolean.
Whether the trigger is enabled; defaults to true.

tags includeExcludeStringFilters.
Tag names to include or exclude for triggering a run.

Examples

In the following example, the trigger is enabled for tags matching production*. When specifying a tag, you may use an exact name or a wildcard. For more information, see wildcards.

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

trigger: none | true

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

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

trigger string. Allowed values: none | true.

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

Remarks

Specify none to disable the trigger, or true to enable. If not specified, the default is none. To configure triggers based on specific tags, see the following section.

Examples

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

See also