Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Use GHA native dispatch for registry metadata build kickoff #958

Merged
merged 2 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@ jobs:
needs: tag_sdk
runs-on: #{{ .Config.runner.default }}#
steps:
- name: Install pulumictl
uses: #{{ .Config.actionVersions.installGhRelease }}#
with:
tag: #{{ .Config.actionVersions.pulumictlTag }}#
repo: pulumi/pulumictl
- env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
name: Dispatch Event
run: pulumictl create docs-build pulumi-#{{ .Config.provider }}#
"${GITHUB_REF#refs/tags/}"
- name: Dispatch Metadata build
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PULUMI_BOT_TOKEN }}
repository: pulumi/registry
event-type: resource-provider
client-payload: |-
{
"project": "${{ github.repository }}",
"project-shortname": "#{{ .Config.provider }}#",
"ref": "${{ github.ref_name }}"
}
#{{ end -}}#
#{{ if .Config.lint -}}#
lint:
Expand Down
22 changes: 12 additions & 10 deletions provider-ci/test-workflows/aws/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,18 @@ jobs:
needs: tag_sdk
runs-on: ubuntu-latest
steps:
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
tag: v0.0.46
repo: pulumi/pulumictl
- env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
name: Dispatch Event
run: pulumictl create docs-build pulumi-aws
"${GITHUB_REF#refs/tags/}"
- name: Dispatch Metadata build
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PULUMI_BOT_TOKEN }}
repository: pulumi/registry
event-type: resource-provider
client-payload: |-
{
"project": "${{ github.repository }}",
"project-shortname": "aws",
"ref": "${{ github.ref_name }}"
}
license_check:
name: License Check
uses: ./.github/workflows/license.yml
Expand Down
22 changes: 12 additions & 10 deletions provider-ci/test-workflows/cloudflare/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,18 @@ jobs:
needs: tag_sdk
runs-on: ubuntu-latest
steps:
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
tag: v0.0.46
repo: pulumi/pulumictl
- env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
name: Dispatch Event
run: pulumictl create docs-build pulumi-cloudflare
"${GITHUB_REF#refs/tags/}"
- name: Dispatch Metadata build
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PULUMI_BOT_TOKEN }}
repository: pulumi/registry
event-type: resource-provider
client-payload: |-
{
"project": "${{ github.repository }}",
"project-shortname": "cloudflare",
"ref": "${{ github.ref_name }}"
}
lint:
name: lint
uses: ./.github/workflows/lint.yml
Expand Down
22 changes: 12 additions & 10 deletions provider-ci/test-workflows/docker/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,18 @@ jobs:
needs: tag_sdk
runs-on: ubuntu-latest
steps:
- name: Install pulumictl
uses: jaxxstorm/[email protected]
with:
tag: v0.0.46
repo: pulumi/pulumictl
- env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
name: Dispatch Event
run: pulumictl create docs-build pulumi-docker
"${GITHUB_REF#refs/tags/}"
- name: Dispatch Metadata build
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PULUMI_BOT_TOKEN }}
repository: pulumi/registry
event-type: resource-provider
client-payload: |-
{
"project": "${{ github.repository }}",
"project-shortname": "docker",
"ref": "${{ github.ref_name }}"
}
lint:
name: lint
uses: ./.github/workflows/lint.yml
Expand Down
Loading