-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up go.mod, updated test containers, and added an example test (…
…#6) * Cleaned up go.mod, updated test containers, and added an example test * Merged changes from main * Fixed tests in workflow
- Loading branch information
1 parent
f42871b
commit 8ce08b0
Showing
8 changed files
with
101 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,6 @@ jobs: | |
run: go build -v ./... | ||
- name: Test | ||
run: go test ./... | ||
env: | ||
LICENSE: ${{ secrets.LICENSE }} | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
terraform { | ||
required_providers { | ||
octopusdeploy = { source = "OctopusDeployLabs/octopusdeploy", version = "0.21.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
resource "octopusdeploy_environment" "development_environment" { | ||
allow_dynamic_infrastructure = true | ||
description = "A development environment" | ||
name = "Development" | ||
use_guided_failure = false | ||
} | ||
|
||
resource "octopusdeploy_environment" "test_environment" { | ||
allow_dynamic_infrastructure = true | ||
description = "A test environment" | ||
name = "Test" | ||
use_guided_failure = false | ||
} | ||
|
||
resource "octopusdeploy_environment" "production_environment" { | ||
allow_dynamic_infrastructure = true | ||
description = "A production environment" | ||
name = "Production" | ||
use_guided_failure = false | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
provider "octopusdeploy" { | ||
address = "${var.octopus_server}" | ||
api_key = "${var.octopus_apikey}" | ||
space_id = "${var.octopus_space_id}" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
variable "octopus_server" { | ||
type = string | ||
nullable = false | ||
sensitive = false | ||
description = "The URL of the Octopus server e.g. https://myinstance.octopus.app." | ||
} | ||
variable "octopus_apikey" { | ||
type = string | ||
nullable = false | ||
sensitive = true | ||
description = "The API key used to access the Octopus server. See https://octopus.com/docs/octopus-rest-api/how-to-create-an-api-key for details on creating an API key." | ||
} | ||
variable "octopus_space_id" { | ||
type = string | ||
nullable = false | ||
sensitive = false | ||
description = "The space ID to populate" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output "octopus_space_id" { | ||
value = var.octopus_space_id | ||
} |
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