diff --git a/provider/azure/rest_api_flint.example/main.tf b/provider/azure/rest_api_flint.example/main.tf index 6a80494c..8bcce29f 100644 --- a/provider/azure/rest_api_flint.example/main.tf +++ b/provider/azure/rest_api_flint.example/main.tf @@ -26,11 +26,15 @@ resource "azurerm_linux_web_app" "example" { "WEBSITES_ENABLE_APP_SERVICE_STORAGE" = "false" "WEBSITES_PORT" = 8080 } + + data "docker_image" "last_applied" { + name = "ghcr.io/moja-global/rest_api_flint.example" + } site_config { application_stack { docker_image = "ghcr.io/moja-global/rest_api_flint.example" - docker_image_tag = "master" + docker_image_tag = "lastest" } } } diff --git a/provider/azure/rest_api_flint.example/outputs.tf b/provider/azure/rest_api_flint.example/outputs.tf index b59b41f2..480dac8b 100644 --- a/provider/azure/rest_api_flint.example/outputs.tf +++ b/provider/azure/rest_api_flint.example/outputs.tf @@ -5,3 +5,7 @@ output "linux_web_app_name" { output "app_url" { value = "https://${azurerm_linux_web_app.example.default_hostname}" } + +output "last_image" { + value = "${data.docker_image.last_applied.id}" +}