dzeyelid / learn-azure-functions-with-network-options

2 stars 0 forks source link

Set the package url to `WEBSITE_RUN_FROM_PACKAGE` #4

Closed dzeyelid closed 3 years ago

dzeyelid commented 3 years ago

latest release のアセットは、URLが固定されないので下記のような方法でURLを取得する必要がありそう。

https://docs.github.com/en/rest/reference/repos#get-the-latest-release

curl -s https://api.github.com/repos/dzeyelid/learn-azure-functions-with-network-opt
ions/releases/latest | jq -r ".assets[0].browser_download_url"

https://github.com/dzeyelid/learn-azure-functions-with-network-options/releases/download/v0.1.0/functions.zip
dzeyelid commented 3 years ago

Terraform の GitHub レジストリの、 data "github_release" が使えそう!

https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/release