-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for managing pipeline team access (#43)
Co-authored-by: justcompile <[email protected]>
- Loading branch information
1 parent
bd40a66
commit 9ba7c6f
Showing
11 changed files
with
483 additions
and
377 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 |
---|---|---|
|
@@ -17,3 +17,6 @@ terraform-provider-buildkite | |
|
||
# GoReleaser dist | ||
dist/ | ||
|
||
# IDE files | ||
.idea |
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 |
---|---|---|
|
@@ -46,6 +46,27 @@ resource "buildkite_pipeline" "repo1" { | |
repository = "[email protected]:org/repo1" | ||
steps = "steps:\n - command: \"buildkite-agent pipeline upload\"\n label: \":pipeline:\"" | ||
} | ||
# create a pipeline with default upload step and assign team access | ||
resource "buildkite_pipeline" "repo1" { | ||
name = "repo1" | ||
description = "a repository pipeline" | ||
repository = "[email protected]:org/repo1" | ||
steps = "steps:\n - command: \"buildkite-agent pipeline upload\"\n label: \":pipeline:\"" | ||
team { | ||
slug = "everyone" | ||
access_level = "READ_ONLY" | ||
} | ||
team { | ||
slug = "developers" | ||
access_level = "BUILD_AND_READ" | ||
} | ||
team { | ||
slug = "admins" | ||
access_level = "MANAGE_BUILD_AND_READ" | ||
} | ||
} | ||
``` | ||
|
||
#### `provider` Argument reference | ||
|
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
Oops, something went wrong.