resources.containers.container.trigger 定義

コンテナー リソースのトリガー条件を指定します。

この定義を参照する定義: resources.containers.container

実装

実装 説明
trigger: enabled, tags トリガーするタグの一覧を指定します。
trigger: none |True 無効にする場合は none を指定し、すべてのイメージ タグでトリガーする場合は true を指定します。

解説

無効にする場合は none、すべてのイメージ タグでトリガーする場合は 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.

プロパティ

enabledboolean
トリガーが有効かどうか。既定値は true です。

tagsincludeExcludeStringFilters
実行をトリガーするために含める、または除外するタグ名。

次の例では、 と一致 production*するタグに対してトリガーが有効になっています。

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

trigger: none |True

無効にする場合は none を指定し、すべてのイメージ タグでトリガーする場合は true を指定します。

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

trigger 文字列。 使用できる値: なし |True。

無効にする場合は 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

関連項目