-
Notifications
You must be signed in to change notification settings - Fork 2
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 #24 from equinix/terraform_upstream
feat: add terraform provider as submodule and configure upstream script
- Loading branch information
Showing
381 changed files
with
6,053 additions
and
18,046 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
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,85 @@ | ||
# WARNING: This file was build based on https://github.com/pulumi/ci-mgmt | ||
# but it is currently not in sync. Any update must be done manually | ||
|
||
name: Upgrade bridge | ||
on: | ||
repository_dispatch: | ||
types: | ||
- upgrade-bridge | ||
workflow_dispatch: | ||
inputs: | ||
target-bridge-version: | ||
description: pulumi-terraform-bridge version or hash reference | ||
required: false | ||
type: string | ||
default: "latest" | ||
pr-reviewers: | ||
description: Reviewers to assign to the auto-opened pull request | ||
required: false | ||
type: string | ||
default: "" | ||
pr-description: | ||
description: Extra description to add to the auto-opened pull request | ||
required: false | ||
type: string | ||
default: "" | ||
automerge: | ||
description: Mark created PR for auto-merging? | ||
required: false | ||
type: boolean | ||
default: false | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
upgrade_provider: | ||
name: upgrade-provider | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Call upgrade provider action | ||
if: github.event_name == 'workflow_dispatch' | ||
uses: pulumi/[email protected] | ||
with: | ||
kind: bridge | ||
email: [email protected] | ||
username: GitHub | ||
automerge: ${{ inputs.automerge }} | ||
target-bridge-version: ${{ inputs.target-bridge-version }} | ||
pr-reviewers: ${{ inputs.pr-reviewers }} | ||
pr-description: ${{ inputs.pr-description }} | ||
- name: Call upgrade provider action | ||
if: github.event_name == 'repository_dispatch' | ||
uses: pulumi/[email protected] | ||
with: | ||
kind: bridge | ||
email: [email protected] | ||
username: GitHub | ||
automerge: ${{ github.event.client_payload.automerge }} | ||
target-bridge-version: ${{ github.event.client_payload.target-bridge-version }} | ||
pr-reviewers: ${{ github.event.client_payload.pr-reviewers }} | ||
pr-description: ${{ github.event.client_payload.pr-description }} | ||
## TODO | ||
# - env: | ||
# SLACK_CHANNEL: provider-upgrade-publish-status | ||
# SLACK_COLOR: "#7CFC00" | ||
# SLACK_ICON_EMOJI: ":taco:" | ||
# SLACK_MESSAGE: >- | ||
# Upgrade succeeded :heart_decoration: | ||
|
||
# PR opened at github.com/pulumi/${{ github.event.repository.name }}/pulls | ||
# SLACK_TITLE: ${{ github.event.repository.name }} upgrade result | ||
# SLACK_USERNAME: provider-bot | ||
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
# name: Send Upgrade Success To Slack | ||
# uses: rtCamp/action-slack-notify@v2 | ||
# - env: | ||
# SLACK_CHANNEL: provider-upgrade-publish-status | ||
# SLACK_COLOR: "#FF0000" | ||
# SLACK_ICON_EMOJI: ":taco:" | ||
# SLACK_MESSAGE: " Upgrade failed :x:" | ||
# SLACK_TITLE: ${{ github.event.repository.name }} upgrade result | ||
# SLACK_USERNAME: provider-bot | ||
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
# if: failure() | ||
# name: Send Upgrade Failure To Slack | ||
# uses: rtCamp/action-slack-notify@v2 |
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,49 @@ | ||
# WARNING: This file was build based on https://github.com/pulumi/ci-mgmt | ||
# but it is currently not in sync. Any update must be done manually | ||
|
||
name: Upgrade provider | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
workflow_dispatch: {} | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
upgrade_provider: | ||
if: ${{ contains(github.event.issue.title, 'Upgrade terraform-provider-') || github.event_name == 'workflow_dispatch' }} | ||
name: upgrade-provider | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Call upgrade provider action | ||
uses: pulumi/[email protected] | ||
with: | ||
kind: all | ||
email: [email protected] | ||
username: GitHub | ||
## TODO | ||
# - env: | ||
# SLACK_CHANNEL: provider-upgrade-publish-status | ||
# SLACK_COLOR: "#7CFC00" | ||
# SLACK_ICON_EMOJI: ":taco:" | ||
# SLACK_MESSAGE: >- | ||
# Upgrade succeeded :heart_decoration: | ||
|
||
# PR opened at github.com/pulumi/${{ github.event.repository.name }}/pulls | ||
# SLACK_TITLE: ${{ github.event.repository.name }} upgrade result | ||
# SLACK_USERNAME: provider-bot | ||
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
# name: Send Upgrade Success To Slack | ||
# uses: rtCamp/action-slack-notify@v2 | ||
# - env: | ||
# SLACK_CHANNEL: provider-upgrade-publish-status | ||
# SLACK_COLOR: "#FF0000" | ||
# SLACK_ICON_EMOJI: ":taco:" | ||
# SLACK_MESSAGE: " Upgrade failed :x:" | ||
# SLACK_TITLE: ${{ github.event.repository.name }} upgrade result | ||
# SLACK_USERNAME: provider-bot | ||
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
# if: failure() | ||
# name: Send Upgrade Failure To Slack | ||
# uses: rtCamp/action-slack-notify@v2 |
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,4 @@ | ||
[submodule "upstream"] | ||
path = upstream | ||
url = https://github.com/equinix/terraform-provider-equinix.git | ||
ignore = dirty |
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,8 @@ | ||
# WARNING: This file was build based on https://github.com/pulumi/ci-mgmt | ||
# but it is currently not in sync. Any update must be done manually | ||
|
||
--- | ||
upstream-provider-name: terraform-provider-equinix | ||
remove-plugins: true | ||
pr-reviewers: equinix/governor-devrel-engineering | ||
javaVersion: "v0.9.8" |
Oops, something went wrong.