AzureStaticWebApp@0 - Azure Static Web App v0 タスクをデプロイする

このタスクでは、Azure Static Web アプリをビルドしてデプロイします。

構文

# Deploy Azure Static Web App v0
# Build and deploy an Azure Static Web App.
- task: AzureStaticWebApp@0
  inputs:
    #workingDirectory: '$(System.DefaultWorkingDirectory)' # string. Alias: cwd | rootDirectory. Working directory. Default: $(System.DefaultWorkingDirectory).
    #app_location: # string. App location. 
    #app_build_command: # string. App build command. 
    #output_location: # string. Output location. 
    #api_location: # string. Api location. 
    #api_build_command: # string. Api build command. 
    #routes_location: # string. Routes location. 
    #config_file_location: # string. Config file location. 
    #skip_app_build: # boolean. Skip app build. 
    #skip_api_build: # boolean. Skip api build. 
    #is_static_export: # boolean. Set static export. 
    #verbose: # boolean. Verbose. 
    #build_timeout_in_minutes: # string. Build timeout in minutes. 
    #azure_static_web_apps_api_token: # string. Azure Static Web Apps api token. 
    #deployment_environment: # string. Deployment Environment. 
    #production_branch: # string. Production Branch.

入力

workingDirectory - 作業ディレクトリ
入力エイリアス: cwd | rootDirectorystring. 既定値: $(System.DefaultWorkingDirectory)

このタスクを実行する絶対作業ディレクトリを指定します。 空のままにすると、既定の作業ディレクトリが使用されます。


app_location - アプリの場所
string.

アプリケーション ソース コードのディレクトリの場所。作業ディレクトリに対する相対位置。


app_build_command - アプリ ビルド コマンド
string.

アプリケーションのソース コードをビルドするときに Oryx を実行するために使用されるカスタム コマンド。


output_location - 出力場所
string.

ビルド後のコンパイル済みアプリケーション コードのディレクトリの場所が、作業ディレクトリを基準にして完了しました。


api_location - API の場所
string.

Azure Functionsソース コードのディレクトリの場所。作業ディレクトリに対する相対位置。


api_build_command - API ビルド コマンド
string.

ソース コードをビルドするときに Oryx を実行するために使用Azure Functionsカスタム コマンド。


routes_location - ルートの場所
string.

作業ディレクトリを基準とした routes.json ファイルのディレクトリの場所。
メモ: Routes.json は非推奨です。 staticwebapp.config.json を使用します。


config_file_location - 構成ファイルの場所
string.

作業ディレクトリを基準としたstaticwebapp.config.json ファイルのディレクトリの場所。


skip_app_build - アプリのビルドをスキップする
boolean.

アプリ フォルダーの Oryx ビルドをスキップします。


skip_api_build - API ビルドをスキップする
boolean.

API フォルダーの Oryx ビルドをスキップします。


is_static_export - 静的エクスポートを設定する
boolean.

を使用する true 場合のように、アプリケーションが静的 HTML にエクスポートするように構成されている場合は、このフラグを next exportに設定します。

このフラグが に設定されている場合 true


verbose - 詳細
boolean.

詳細なログを有効にします。


build_timeout_in_minutes - ビルドタイムアウト (分単位)
string.

Oryx アプリ フォルダービルドの時間制限を分単位で指定します。


azure_static_web_apps_api_token - api トークンのAzure Static Web Apps
string.

デプロイ用の API トークンを指定します。
メモ: 環境変数として渡された場合は必須ではありません。


deployment_environment - デプロイ環境
string.

デプロイする環境を指定します。 運用環境では空白のままにします。 この入力は、運用ブランチよりも優先されます。


production_branch - 運用ブランチ
string.

運用ブランチを指定します。 定義され、デプロイ環境が空の場合、他のブランチからのデプロイはプレビュー環境になります。


タスク コントロールのオプション

すべてのタスクには、タスク入力に加えて制御オプションがあります。 詳細については、「 コントロール オプションと一般的なタスク プロパティ」を参照してください。

出力変数

[なし] :

Note

このタスクは Linux エージェントでのみ実行されます。


trigger:
  - main

pool:
  vmImage: ubuntu-latest

steps:
  - checkout: self
    submodules: true
  - task: AzureStaticWebApp@0
    inputs:
      app_location: '/build'
      api_location: 'api'
      output_location: '/output'
      azure_static_web_apps_api_token: $(deployment_token)

要件

要件 説明
パイプラインの種類 YAML、クラシック ビルド、クラシック リリース
上で実行 エージェント、DeploymentGroup
確認要求 なし
Capabilities このタスクは、ジョブ内の後続のタスクに対する要求を満たしていません。
コマンドの制限 Any
設定可能な変数 Any
エージェントのバージョン 1.95.0 以上
タスクのカテゴリ ユーティリティ