This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- build | |
- deploy | |
variables: | |
CONNECTION_STRING: $CONNECTION_STRING | |
stages: | |
- build | |
- deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_resource_group" "rg" { | |
name = "rg-my-react-app" | |
location = "westeurope" | |
} | |
resource "azurerm_storage_account" "sa" { | |
name = "mystorageaccount1985" | |
resource_group_name = azurerm_resource_group.rg.name | |
location = azurerm_resource_group.rg.location | |
account_tier = "Standard" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_resource_group" "rg" { | |
name = "rg-apim-to-servicebus" | |
location = "westeurope" | |
} | |
resource "azurerm_servicebus_namespace" "sbns" { | |
name = "sbns-brands-test-2023" | |
location = azurerm_resource_group.rg.location | |
resource_group_name = azurerm_resource_group.rg.name | |
sku = "Standard" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = ">= 3.45.0" | |
} | |
} | |
required_version = ">= 1.4.6" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"subscriptionId": { | |
"type": "string" | |
}, | |
"name": { | |
"type": "string" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "project_name" { | |
type = string | |
} | |
variable "tags" { | |
type = map(any) | |
default = { | |
Environment = "Production" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.5" | |
# Manually create a network so we can use static IPs on the backend | |
networks: | |
pihole_net: | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 10.0.0.0/24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function TriggerBuilds($buildIds) { | |
foreach($buildId in $buildIds) { | |
try { | |
$request = [System.Net.WebRequest]::Create("http://localhost:8111/httpAuth/app/rest/buildQueue") | |
$request.PreAuthenticate = $true | |
$request.Method = "POST" | |
$request.ContentType = "application/xml" | |
$request.Credentials = new-object system.net.networkcredential("%TeamCity_UserName%", "%TeamCity_Password%") | |
$encoding = new-object System.Text.ASCIIEncoding | |
IF("%teamcity.build.branch%" -eq "master"){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use TargetDB; | |
go; | |
declare @TablesToImport table | |
( | |
Name nvarchar(128) | |
) | |
insert into @TablesToImport (Name) values | |
('Users'), ('Orders'), ('Products'), ('Categories') |