-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Bitbucket Cloud support for TMC.
Signed-off-by: i4k <[email protected]>
- Loading branch information
Showing
21 changed files
with
755 additions
and
43 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,36 @@ | ||
# Copyright 2024 Terramate GmbH | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
image: golang | ||
|
||
clone: | ||
enabled: true | ||
depth: full | ||
|
||
pipelines: | ||
pull-requests: | ||
'**': | ||
- step: | ||
name: 'build Terramate' | ||
script: | ||
- make build | ||
- go install github.com/hashicorp/hc-install/cmd/hc-install@latest | ||
- hc-install install -version 1.6.0 terraform | ||
- cp ./terraform /usr/local/bin/terraform | ||
- export TMC_API_HOST=api.stg.terramate.io | ||
- export TM_CLOUD_ORGANIZATION=test | ||
- ./bin/terramate run --changed -- terraform init | ||
- ./bin/terramate run --changed --sync-preview --terraform-plan-file=out.tfplan --target linux-go-packages --parallel 12 -- terraform plan -detailed-exitcode -out=out.tfplan | ||
branches: | ||
main: | ||
- step: | ||
name: 'build Terramate' | ||
script: | ||
- make build | ||
- go install github.com/hashicorp/hc-install/cmd/hc-install@latest | ||
- hc-install install -version 1.6.0 terraform | ||
- cp ./terraform /usr/local/bin/terraform | ||
- export TMC_API_HOST=api.stg.terramate.io | ||
- export TM_CLOUD_ORGANIZATION=test | ||
- ./bin/terramate run --changed -- terraform init | ||
- ./bin/terramate run --changed --sync-deployment --terraform-plan-file=out.tfplan --target linux-go-packages --parallel 12 -- terraform plan -out=out.tfplan |
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,23 @@ | ||
// TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT | ||
|
||
resource "local_file" "bitbucket" { | ||
content = <<-EOT | ||
package bitbucket // import "github.com/terramate-io/terramate/cmd/terramate/cli/bitbucket" | ||
Package bitbucket implements the client for Bitbucket Cloud. | ||
type Actor struct{ ... } | ||
type Branch struct{ ... } | ||
type Client struct{ ... } | ||
type Commit struct{ ... } | ||
type PR struct{ ... } | ||
type PRs []PR | ||
type PullRequestResponse struct{ ... } | ||
type Rendered struct{ ... } | ||
type RenderedContent struct{ ... } | ||
type Summary RenderedContent | ||
type TargetBranch struct{ ... } | ||
EOT | ||
|
||
filename = "${path.module}/mock-bitbucket.ignore" | ||
} |
Oops, something went wrong.