-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fnm/scheduled-trigger-new-client
- Loading branch information
Showing
28 changed files
with
1,754 additions
and
103 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Prevent New Terraform SDK additions | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
detect-new-sdk-files: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Check for new SDK resources or datasources | ||
run: | | ||
git diff --name-status origin/main..${{ vars.GITHUB_REF }} | grep '^A' | grep '^A\s\+octopusdeploy/' > new_files.txt || true | ||
if [ -s new_files.txt ]; then | ||
echo "New files were found in the 'octopusdeploy/' directory." | ||
cat new_files.txt | ||
echo "::error::We are no longer creating new Terraform SDK resources or datasources. Anything new should be added using Terraform Framework in the 'octopusdeploy_framework' folder instead." | ||
exit 1 | ||
else | ||
echo "::notice::No new files detected in the 'octopusdeploy/' directory." | ||
fi |
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
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,73 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "octopusdeploy_git_trigger Resource - terraform-provider-octopusdeploy" | ||
subcategory: "" | ||
description: |- | ||
This resource manages Git triggers in Octopus Deploy | ||
--- | ||
|
||
# octopusdeploy_git_trigger (Resource) | ||
|
||
This resource manages Git triggers in Octopus Deploy | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "octopusdeploy_git_trigger" "my_trigger" { | ||
name = "My Git trigger" | ||
space_id = "Spaces-1" | ||
description = "My Git trigger description" | ||
project_id = "Projects-1" | ||
channel_id = "Channels-1" | ||
sources { | ||
deployment_action_slug = "deploy-action-slug" | ||
git_dependency_name = "" | ||
include_file_paths = [ | ||
"include/me", | ||
"include/this/too" | ||
] | ||
exclude_file_paths = [ | ||
"exclude/me", | ||
"exclude/this/too" | ||
] | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `channel_id` (String) The ID of the channel in which the release will be created if the action type is CreateRelease. | ||
- `name` (String) The name of this resource. | ||
- `project_id` (String) The ID of the project to attach the trigger. | ||
- `sources` (Attributes List) (see [below for nested schema](#nestedatt--sources)) | ||
|
||
### Optional | ||
|
||
- `description` (String) The description of this Git trigger.. | ||
- `is_disabled` (Boolean) Disables the trigger from being run when set. | ||
- `space_id` (String) The space ID associated with this Git trigger. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The unique ID for this resource. | ||
|
||
<a id="nestedatt--sources"></a> | ||
### Nested Schema for `sources` | ||
|
||
Required: | ||
|
||
- `deployment_action_slug` (String) The deployment action slug. | ||
- `exclude_file_paths` (List of String) The file paths to exclude. | ||
- `git_dependency_name` (String) The git dependency name. | ||
- `include_file_paths` (List of String) The file paths to include. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import [options] octopusdeploy_git_trigger.<name> <trigger-id> | ||
``` |
19 changes: 19 additions & 0 deletions
19
examples/data-sources/octopusdeploy_deployment_freezes/data-source.tf
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,19 @@ | ||
data "octopusdeploy_deployment_freezes" "test_freeze" { | ||
ids = null | ||
partial_name = "Freeze Name" | ||
skip = 5 | ||
take = 100 | ||
} | ||
|
||
|
||
data "octopusdeploy_deployment_freezes" "project_freezes" { | ||
project_ids = ["projects-1"] | ||
skip = 0 | ||
take = 5 | ||
} | ||
|
||
data "octopusdeploy_deployment_freezes" "tenant_freezes" { | ||
tenant_ids = ["tenants-1"] | ||
skip = 0 | ||
take = 10 | ||
} |
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 @@ | ||
terraform import [options] octopusdeploy_git_trigger.<name> <trigger-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,19 @@ | ||
resource "octopusdeploy_git_trigger" "my_trigger" { | ||
name = "My Git trigger" | ||
space_id = "Spaces-1" | ||
description = "My Git trigger description" | ||
project_id = "Projects-1" | ||
channel_id = "Channels-1" | ||
sources { | ||
deployment_action_slug = "deploy-action-slug" | ||
git_dependency_name = "" | ||
include_file_paths = [ | ||
"include/me", | ||
"include/this/too" | ||
] | ||
exclude_file_paths = [ | ||
"exclude/me", | ||
"exclude/this/too" | ||
] | ||
} | ||
} |
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
Oops, something went wrong.