Skip to content

Instantly share code, notes, and snippets.

@asizikov
Created January 28, 2021 10:35
Show Gist options
  • Save asizikov/46cf47377155fef292da378d0cb0fdca to your computer and use it in GitHub Desktop.
Save asizikov/46cf47377155fef292da378d0cb0fdca to your computer and use it in GitHub Desktop.
Deployment process for Azure WebApp (Azure Function)
# https://blog.cloud-eng.nl/2021/01/27/terraform-octopus-deploy/
data "octopusdeploy_feeds" "builtin" {
feed_type = "BuiltIn"
}
data "octopusdeploy_machine_policies" "default" {
}
resource "octopusdeploy_deployment_process" "deployment" {
project_id = octopusdeploy_project.echo-api.id
step {
name = "Deploy Function"
target_roles = ["echo-api"]
action {
name = "Deploy Function"
action_type = "Octopus.AzureWebApp"
environments = [octopusdeploy_environment.test.id]
package {
name = ""
package_id = "func"
feed_id = data.octopusdeploy_feeds.builtin.feeds[0].id
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment