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.
プロパティ
enabled
boolean。
トリガーが有効かどうか。既定値は true です。
tags
includeExcludeStringFilters。
実行をトリガーするために含める、または除外するタグ名。
例
次の例では、 と一致 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
関連項目
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示