forked from saymedia/terraform-buildkite
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from Mattias-/master
buildkite_pipeline: Deprecate step and env. Document configuration.
- Loading branch information
Showing
3 changed files
with
13 additions
and
11 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
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 |
---|---|---|
|
@@ -20,19 +20,17 @@ resource "buildkite_pipeline" "build_something" { | |
default_branch = "master" | ||
repository = "[email protected]:my-org/awesome-repo.git" | ||
github { | ||
build_pull_request_forks = true | ||
} | ||
step { | ||
name = ":pipeline: Fetch pipeline" | ||
type = "script" | ||
command = "buildkite-agent pipeline upload" | ||
configuration = <<EOF | ||
steps: | ||
- command: "buildkite-agent pipeline upload" | ||
label: ":pipeline:" | ||
EOF | ||
agent_query_rules = [ | ||
] | ||
} | ||
} | ||
``` | ||
|
||
|
@@ -50,9 +48,11 @@ The following arguments are supported: | |
|
||
* `default_branch` - (Optional) the default branch to build. Defaults to `master` | ||
|
||
* `env` - (Optional) pipeline environment variables | ||
* `env` - (Optional, Deprecated) pipeline environment variables. Switch to use `configuration` with YAML pipeline steps. | ||
|
||
* `step` - (Optional, Deprecated) nested block list configuring the steps to run. Must provide at least one. Switch to use `configuration` with YAML pipeline steps. | ||
|
||
* `step` - (Required) nested block list configuring the steps to run. Must provide at least one. | ||
* `configuration` - (Optional) String in YAML format with step configuration. | ||
|
||
* `bitbucket_settings` - (Optional) | ||
|
||
|