-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GitHub Actions workflows. (#583)
This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 59792d5093b1b8122226758ee600ab8213370432.
- Loading branch information
1 parent
f11290c
commit 86ea518
Showing
10 changed files
with
114 additions
and
111 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,16 @@ | ||
name: Download binary assets | ||
description: Downloads the provider and tfgen binaries to `bin/`. | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download provider + tfgen binaries | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: datadog-provider.tar.gz | ||
path: ${{ github.workspace }}/bin | ||
- name: Untar provider binaries | ||
shell: bash | ||
run: | | ||
tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace}}/bin | ||
find ${{ github.workspace }} -name "pulumi-*-datadog" -print -exec chmod +x {} \; |
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,19 @@ | ||
name: Download SDK asset | ||
description: Restores the SDK asset for a language. | ||
|
||
inputs: | ||
language: | ||
required: true | ||
description: One of nodejs, python, dotnet, go, java | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download ${{ inputs.language }} SDK | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ inputs.language }}-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress SDK folder | ||
shell: bash | ||
run: tar -zxf ${{ github.workspace }}/sdk/${{ inputs.language }}.tar.gz -C ${{ github.workspace }}/sdk/${{ inputs.language }} |
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,15 @@ | ||
name: Upload bin assets | ||
description: Uploads the provider and tfgen binaries to `bin/`. | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Tar provider binaries | ||
shell: bash | ||
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace }}/bin/ pulumi-resource-datadog pulumi-tfgen-datadog | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: datadog-provider.tar.gz | ||
path: ${{ github.workspace }}/bin/provider.tar.gz | ||
retention-days: 30 |
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,20 @@ | ||
name: Upload SDK asset | ||
description: Upload the SDK for a specific language as an asset for the workflow. | ||
|
||
inputs: | ||
language: | ||
required: true | ||
description: One of nodejs, python, dotnet, go, java | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Compress SDK folder | ||
shell: bash | ||
run: tar -zcf sdk/${{ inputs.language }}.tar.gz -C sdk/${{ inputs.language }} . | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.language }}-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/${{ inputs.language }}.tar.gz | ||
retention-days: 30 |
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 |
---|---|---|
|
@@ -127,15 +127,17 @@ jobs: | |
- publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Setup tools | ||
uses: ./.github/actions/setup-tools | ||
with: | ||
tools: pulumicli, pulumictl, go, node, dotnet, python, java | ||
- name: Publish SDKs | ||
uses: pulumi/[email protected].18 | ||
uses: pulumi/[email protected].19 | ||
with: | ||
sdk: all | ||
version: ${{ needs.prerequisites.outputs.version }} | ||
dotnet-version: "6.0.x" | ||
java-version: "11" | ||
node-version: "20.x" | ||
python-version: "3.11.8" | ||
|
||
tag_release_if_labeled_needs_release: | ||
name: Tag release if labeled as needs-release | ||
|
@@ -172,26 +174,13 @@ jobs: | |
uses: ./.github/actions/setup-tools | ||
with: | ||
tools: pulumictl, pulumicli, go, node, dotnet, python, java | ||
- name: Download provider + tfgen binaries | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: datadog-provider.tar.gz | ||
path: ${{ github.workspace }}/bin | ||
- name: Untar provider binaries | ||
run: >- | ||
tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ | ||
github.workspace}}/bin | ||
find ${{ github.workspace }} -name "pulumi-*-datadog" -print -exec chmod +x {} \; | ||
- name: Download bin | ||
uses: ./.github/actions/download-bin | ||
- run: dotnet nuget add source ${{ github.workspace }}/nuget | ||
- name: Download SDK | ||
uses: actions/download-artifact@v4 | ||
uses: ./.github/actions/download-sdk | ||
with: | ||
name: ${{ matrix.language }}-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress SDK folder | ||
run: tar -zxf ${{ github.workspace }}/sdk/${{ matrix.language }}.tar.gz -C ${{ | ||
github.workspace }}/sdk/${{ matrix.language }} | ||
language: ${{ matrix.language }} | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Install Python deps | ||
|
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 |
---|---|---|
|
@@ -89,15 +89,17 @@ jobs: | |
- publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Setup tools | ||
uses: ./.github/actions/setup-tools | ||
with: | ||
tools: pulumicli, pulumictl, go, node, dotnet, python, java | ||
- name: Publish SDKs | ||
uses: pulumi/[email protected].18 | ||
uses: pulumi/[email protected].19 | ||
with: | ||
sdk: all | ||
version: ${{ needs.prerequisites.outputs.version }} | ||
dotnet-version: "6.0.x" | ||
java-version: "11" | ||
node-version: "20.x" | ||
python-version: "3.11.8" | ||
publish_go_sdk: | ||
name: publish_go_sdk | ||
needs: | ||
|
@@ -147,26 +149,13 @@ jobs: | |
uses: ./.github/actions/setup-tools | ||
with: | ||
tools: pulumictl, pulumicli, go, node, dotnet, python, java | ||
- name: Download provider + tfgen binaries | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: datadog-provider.tar.gz | ||
path: ${{ github.workspace }}/bin | ||
- name: Untar provider binaries | ||
run: >- | ||
tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ | ||
github.workspace}}/bin | ||
find ${{ github.workspace }} -name "pulumi-*-datadog" -print -exec chmod +x {} \; | ||
- name: Download bin | ||
uses: ./.github/actions/download-bin | ||
- run: dotnet nuget add source ${{ github.workspace }}/nuget | ||
- name: Download SDK | ||
uses: actions/download-artifact@v4 | ||
uses: ./.github/actions/download-sdk | ||
with: | ||
name: ${{ matrix.language }}-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress SDK folder | ||
run: tar -zxf ${{ github.workspace }}/sdk/${{ matrix.language }}.tar.gz -C ${{ | ||
github.workspace }}/sdk/${{ matrix.language }} | ||
language: ${{ matrix.language }} | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Install Python deps | ||
|
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 |
---|---|---|
|
@@ -104,15 +104,17 @@ jobs: | |
- publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Setup tools | ||
uses: ./.github/actions/setup-tools | ||
with: | ||
tools: pulumicli, pulumictl, go, node, dotnet, python, java | ||
- name: Publish SDKs | ||
uses: pulumi/[email protected].18 | ||
uses: pulumi/[email protected].19 | ||
with: | ||
sdk: all | ||
version: ${{ needs.prerequisites.outputs.version }} | ||
dotnet-version: "6.0.x" | ||
java-version: "11" | ||
node-version: "20.x" | ||
python-version: "3.11.8" | ||
publish_go_sdk: | ||
name: publish_go_sdk | ||
needs: | ||
|
@@ -180,26 +182,13 @@ jobs: | |
uses: ./.github/actions/setup-tools | ||
with: | ||
tools: pulumictl, pulumicli, go, node, dotnet, python, java | ||
- name: Download provider + tfgen binaries | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: datadog-provider.tar.gz | ||
path: ${{ github.workspace }}/bin | ||
- name: Untar provider binaries | ||
run: >- | ||
tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ | ||
github.workspace}}/bin | ||
find ${{ github.workspace }} -name "pulumi-*-datadog" -print -exec chmod +x {} \; | ||
- name: Download bin | ||
uses: ./.github/actions/download-bin | ||
- run: dotnet nuget add source ${{ github.workspace }}/nuget | ||
- name: Download SDK | ||
uses: actions/download-artifact@v4 | ||
uses: ./.github/actions/download-sdk | ||
with: | ||
name: ${{ matrix.language }}-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress SDK folder | ||
run: tar -zxf ${{ github.workspace }}/sdk/${{ matrix.language }}.tar.gz -C ${{ | ||
github.workspace }}/sdk/${{ matrix.language }} | ||
language: ${{ matrix.language }} | ||
- name: Update path | ||
run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" | ||
- name: Install Python deps | ||
|
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