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
# https://blog.cloud-eng.nl/2022/11/26/environment-protection-tags/ | |
name: ⚙️ deployment | |
# Controls when the workflow will run | |
on: | |
push: | |
tags: | |
- 'release_*' | |
jobs: |
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
#C:\Users\<yourUserName>\.wslconfig | |
# https://blog.cloud-eng.nl/2021/02/03/wsl2-limits-vmmem/ | |
[wsl2] | |
memory=6GB # How much memory to assign to the WSL 2 VM. | |
processors=4 # How many processors to assign to the WSL 2 VM. | |
swap=1GB # How much swap space to add to the WSL 2 VM, 0 for no swap file. | |
localhostForwarding=true # ports bound to wildcard or localhost in the WSL 2 VM should be connectable from the host via localhost:port. |
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
# https://blog.cloud-eng.nl/2021/01/27/terraform-octopus-deploy/ | |
- stage: octopus_deploy_deployment | |
displayName: 'Deploy release' | |
dependsOn: | |
- octopus_deploy_release | |
jobs: | |
- job: | |
steps: | |
- task: OctopusDeployRelease@4 |
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
# https://blog.cloud-eng.nl/2021/01/27/terraform-octopus-deploy/ | |
- stage: octopus_deploy_release | |
displayName: 'Prepare release' | |
dependsOn: | |
- build_application | |
jobs: | |
- job: octopus | |
steps: | |
- download: current | |
artifact: 'drop' |
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
# https://blog.cloud-eng.nl/2021/01/27/terraform-octopus-deploy/ | |
terraform import octopusdeploy_environment.production Environments-7 |
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
# 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" { |
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
# https://blog.cloud-eng.nl/2021/01/27/terraform-octopus-deploy/ | |
resource "octopusdeploy_lifecycle" "default" { | |
name = "Default Lifecycle" | |
} | |
resource "octopusdeploy_project_group" "default" { | |
name = "Default Project Group" | |
description = "Azure Echo Function" | |
} |
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
# https://blog.cloud-eng.nl/2021/01/27/terraform-octopus-deploy/ | |
resource "octopusdeploy_azure_service_principal" "azure" { | |
subscription_id = var.azure_subscription_id | |
name = "Azure Subscpription" | |
tenant_id = var.azure_tenant_id | |
application_id = var.azure_application_id | |
password = var.azure_password | |
} | |
resource "octopusdeploy_azure_web_app_deployment_target" "echo_function" { |
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
# https://blog.cloud-eng.nl/2021/01/27/terraform-octopus-deploy/ | |
resource "octopusdeploy_environment" "test" { | |
description = "azure function" | |
name = var.environmentName | |
depends_on = [octopusdeploy_azure_service_principal.azure] | |
} |
NewerOlder