-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(updatecli) track terraform providers with native updatecli reso…
…urce (#479) Since `updatecli` [v0.60.0](https://github.com/updatecli/updatecli/releases/tag/v0.60.0), there are a new native resource available to track terraform providers from the hashicorp registry to the terraform lock files. This PR fixes the broken updatecli builds of this repository and switches to native terraform resources which includes: - One manifest per provider is added - Removed the "all in one" updater and the former script - No need to use a custom hashicorp agent image to execute updatecli as it's native in updatecli now (no docker, no terraform required) Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
- Loading branch information
Showing
9 changed files
with
284 additions
and
93 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,47 @@ | ||
name: "Bump Terraform `azuread` provider version" | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
lastVersion: | ||
name: Get latest version of the `azuread` provider | ||
kind: terraform/registry | ||
spec: | ||
type: provider | ||
namespace: hashicorp | ||
name: azuread | ||
|
||
targets: | ||
updateTerraformLockFile: | ||
name: Update Terraform lock file | ||
kind: terraform/lock | ||
sourceid: lastVersion | ||
spec: | ||
file: .terraform.lock.hcl | ||
provider: hashicorp/azuread | ||
platforms: | ||
- linux_amd64 | ||
- linux_arm64 | ||
- darwin_amd64 | ||
- darwin_arm64 | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
spec: | ||
title: Bump Terraform `azuread` provider version to {{ source "lastVersion" }} | ||
labels: | ||
- terraform-providers | ||
- hashicorp/azuread |
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,47 @@ | ||
name: "Bump Terraform `azurerm` provider version" | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
lastVersion: | ||
name: Get latest version of the `azurerm` provider | ||
kind: terraform/registry | ||
spec: | ||
type: provider | ||
namespace: hashicorp | ||
name: azurerm | ||
|
||
targets: | ||
updateTerraformLockFile: | ||
name: Update Terraform lock file | ||
kind: terraform/lock | ||
sourceid: lastVersion | ||
spec: | ||
file: .terraform.lock.hcl | ||
provider: hashicorp/azurerm | ||
platforms: | ||
- linux_amd64 | ||
- linux_arm64 | ||
- darwin_amd64 | ||
- darwin_arm64 | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
spec: | ||
title: Bump Terraform `azurerm` provider version to {{ source "lastVersion" }} | ||
labels: | ||
- terraform-providers | ||
- hashicorp/azurerm |
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,47 @@ | ||
name: "Bump Terraform `kubernetes` provider version" | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
lastVersion: | ||
name: Get latest version of the `kubernetes` provider | ||
kind: terraform/registry | ||
spec: | ||
type: provider | ||
namespace: hashicorp | ||
name: kubernetes | ||
|
||
targets: | ||
updateTerraformLockFile: | ||
name: Update Terraform lock file | ||
kind: terraform/lock | ||
sourceid: lastVersion | ||
spec: | ||
file: .terraform.lock.hcl | ||
provider: hashicorp/kubernetes | ||
platforms: | ||
- linux_amd64 | ||
- linux_arm64 | ||
- darwin_amd64 | ||
- darwin_arm64 | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
spec: | ||
title: Bump Terraform `kubernetes` provider version to {{ source "lastVersion" }} | ||
labels: | ||
- terraform-providers | ||
- hashicorp/kubernetes |
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,47 @@ | ||
name: "Bump Terraform `local` provider version" | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
lastVersion: | ||
name: Get latest version of the `local` provider | ||
kind: terraform/registry | ||
spec: | ||
type: provider | ||
namespace: hashicorp | ||
name: local | ||
|
||
targets: | ||
updateTerraformLockFile: | ||
name: Update Terraform lock file | ||
kind: terraform/lock | ||
sourceid: lastVersion | ||
spec: | ||
file: .terraform.lock.hcl | ||
provider: hashicorp/local | ||
platforms: | ||
- linux_amd64 | ||
- linux_arm64 | ||
- darwin_amd64 | ||
- darwin_arm64 | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
spec: | ||
title: Bump Terraform `local` provider version to {{ source "lastVersion" }} | ||
labels: | ||
- terraform-providers | ||
- hashicorp/local |
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,47 @@ | ||
name: "Bump Terraform `postgresql` provider version" | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
lastVersion: | ||
name: Get latest version of the `postgresql` provider | ||
kind: terraform/registry | ||
spec: | ||
type: provider | ||
namespace: cyrilgdn | ||
name: postgresql | ||
|
||
targets: | ||
updateTerraformLockFile: | ||
name: Update Terraform lock file | ||
kind: terraform/lock | ||
sourceid: lastVersion | ||
spec: | ||
file: .terraform.lock.hcl | ||
provider: cyrilgdn/postgresql | ||
platforms: | ||
- linux_amd64 | ||
- linux_arm64 | ||
- darwin_amd64 | ||
- darwin_arm64 | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
spec: | ||
title: Bump Terraform `cyrilgdn/postgresql` provider version to {{ source "lastVersion" }} | ||
labels: | ||
- terraform-providers | ||
- cyrilgdn/postgresql |
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,47 @@ | ||
name: "Bump Terraform `random` provider version" | ||
|
||
scms: | ||
default: | ||
kind: github | ||
spec: | ||
user: "{{ .github.user }}" | ||
email: "{{ .github.email }}" | ||
owner: "{{ .github.owner }}" | ||
repository: "{{ .github.repository }}" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
branch: "{{ .github.branch }}" | ||
|
||
sources: | ||
lastVersion: | ||
name: Get latest version of the `random` provider | ||
kind: terraform/registry | ||
spec: | ||
type: provider | ||
namespace: hashicorp | ||
name: random | ||
|
||
targets: | ||
updateTerraformLockFile: | ||
name: Update Terraform lock file | ||
kind: terraform/lock | ||
sourceid: lastVersion | ||
spec: | ||
file: .terraform.lock.hcl | ||
provider: hashicorp/random | ||
platforms: | ||
- linux_amd64 | ||
- linux_arm64 | ||
- darwin_amd64 | ||
- darwin_arm64 | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
scmid: default | ||
spec: | ||
title: Bump Terraform `random` provider version to {{ source "lastVersion" }} | ||
labels: | ||
- terraform-providers | ||
- hashicorp/random |