Skip to content

Commit

Permalink
Prefix container apps
Browse files Browse the repository at this point in the history
  • Loading branch information
benchiverton committed Jul 1, 2024
1 parent 7495180 commit 2e4daaa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/instance-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
location: 'East US'
resourceGroup: ${{ env.resource_group_name }}
targetPort: 8080
environmentVariables: OTEL_EXPORTER_OTLP_ENDPOINT=http://onlinestore-monitoring:18889
environmentVariables: OTEL_EXPORTER_OTLP_ENDPOINT=http://prod-onlinestore-monitoring:18889
- name: Deploy website
uses: azure/container-apps-deploy-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/instance-deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
location: 'East US'
resourceGroup: ${{ env.resource_group_name }}
targetPort: 8080
environmentVariables: OTEL_EXPORTER_OTLP_ENDPOINT=http://onlinestore-monitoring:18889
environmentVariables: OTEL_EXPORTER_OTLP_ENDPOINT=http://${{ github.head_ref }}-onlinestore-monitoring:18889
- name: Deploy website
uses: azure/container-apps-deploy-action@v1
with:
Expand Down
6 changes: 3 additions & 3 deletions terraform/instance/container_apps.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
data "azurerm_container_app_environment" "apps" {
name = "${var.name}-containerapps"
name = "${lower(var.environment)}-${var.name}-containerapps"
resource_group_name = "onlinestore-shared-rg"
}

Expand Down Expand Up @@ -39,7 +39,7 @@ resource "azurerm_container_app" "api" {
}

resource "azurerm_container_app" "website" {
name = "${var.name}-website"
name = "${lower(var.environment)}-${var.name}-website"
container_app_environment_id = data.azurerm_container_app_environment.apps.id
resource_group_name = azurerm_resource_group.instance.name
revision_mode = "Single"
Expand Down Expand Up @@ -74,7 +74,7 @@ resource "azurerm_container_app" "website" {
}

resource "azurerm_container_app" "monitoring" {
name = "${var.name}-monitoring"
name = "${lower(var.environment)}-${var.name}-monitoring"
container_app_environment_id = data.azurerm_container_app_environment.apps.id
resource_group_name = azurerm_resource_group.instance.name
revision_mode = "Single"
Expand Down

0 comments on commit 2e4daaa

Please sign in to comment.