generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] Update GitHub Actions workflow files
- Loading branch information
1 parent
c4b5c3b
commit 34c9272
Showing
26 changed files
with
339 additions
and
288 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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
name: Download binary assets | ||
description: Downloads the provider and tfgen binaries to `bin/`. | ||
name: Download the provider binary | ||
description: Downloads the provider binary to `bin/`. | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download provider + tfgen binaries | ||
uses: actions/download-artifact@v4 | ||
|
||
- name: Download pulumi-resource-rancher2 | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
with: | ||
name: rancher2-provider.tar.gz | ||
pattern: pulumi-resource-rancher2-*-linux-amd64.tar.gz | ||
path: ${{ github.workspace }}/bin | ||
- name: Untar provider binaries | ||
merge-multiple: true | ||
|
||
- name: Untar pulumi-resource-rancher2 | ||
shell: bash | ||
run: | | ||
tar -zxf ${{ github.workspace }}/bin/*amd64.tar.gz -C ${{ github.workspace}}/bin | ||
- name: Mark pulumi-resource-rancher2 as executable | ||
shell: bash | ||
run: | | ||
tar -zxf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ github.workspace}}/bin | ||
find ${{ github.workspace }} -name "pulumi-*-rancher2" -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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ runs: | |
steps: | ||
- name: Install Go | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'go') | ||
uses: actions/setup-go@v5 | ||
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5 | ||
with: | ||
go-version: "1.21.x" | ||
cache-dependency-path: | | ||
|
@@ -30,52 +30,52 @@ runs: | |
- name: Install pulumictl | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'pulumictl') | ||
uses: jaxxstorm/[email protected] | ||
uses: jaxxstorm/action-install-gh-release@71d17cb091aa850acb2a1a4cf87258d183eb941b # v1.11.0 | ||
with: | ||
tag: v0.0.46 | ||
repo: pulumi/pulumictl | ||
|
||
- name: Install Pulumi CLI | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'pulumicli') | ||
uses: pulumi/actions@v5 | ||
uses: pulumi/actions@c7fad9e2f0b79653172b36538b8b34b3c0291952 # v6 | ||
with: | ||
pulumi-version: "dev" | ||
|
||
- name: Install Schema Tools | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'schema-tools') | ||
uses: jaxxstorm/[email protected] | ||
uses: jaxxstorm/action-install-gh-release@71d17cb091aa850acb2a1a4cf87258d183eb941b # v1.11.0 | ||
with: | ||
repo: pulumi/schema-tools | ||
|
||
- name: Setup Node | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'nodejs') | ||
uses: actions/setup-node@v4 | ||
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | ||
with: | ||
node-version: 20.x | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: Setup DotNet | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'dotnet') | ||
uses: actions/setup-dotnet@v4 | ||
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: Setup Python | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'python') | ||
uses: actions/setup-python@v5 | ||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5 | ||
with: | ||
python-version: 3.11.8 | ||
|
||
- name: Setup Java | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'java') | ||
uses: actions/setup-java@v4 | ||
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: 11 | ||
|
||
- name: Setup Gradle | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'java') | ||
uses: gradle/gradle-build-action@v3 | ||
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3 | ||
with: | ||
gradle-version: 7.6 |
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
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 |
---|---|---|
|
@@ -52,16 +52,16 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/[email protected] | ||
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 | ||
with: | ||
tool-cache: false | ||
swap-storage: false | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_CORP_S3_UPLOAD_ACCESS_KEY_ID }} | ||
aws-region: us-west-2 | ||
|
@@ -107,6 +107,7 @@ jobs: | |
version: ${{ needs.prerequisites.outputs.version }} | ||
isPrerelease: true | ||
skipGoSdk: true | ||
skipJavaSdk: true | ||
|
||
tag_release_if_labeled_needs_release: | ||
name: Tag release if labeled as needs-release | ||
|
@@ -130,6 +131,7 @@ jobs: | |
name: test | ||
needs: | ||
- prerequisites | ||
- build_provider | ||
- build_sdk | ||
permissions: | ||
contents: read | ||
|
@@ -139,22 +141,23 @@ jobs: | |
PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- name: Setup tools | ||
uses: ./.github/actions/setup-tools | ||
with: | ||
tools: pulumictl, pulumicli, ${{ matrix.language }} | ||
- name: Prepare local workspace | ||
run: make prepare_local_workspace | ||
- name: Download bin | ||
uses: ./.github/actions/download-bin | ||
- name: Add NuGet source | ||
if: matrix.language == 'dotnet' | ||
run: dotnet nuget add source ${{ github.workspace }}/nuget | ||
- name: Download SDK | ||
uses: ./.github/actions/download-sdk | ||
with: | ||
language: ${{ matrix.language }} | ||
- name: Restore makefile progress | ||
run: make --touch provider schema build_${{ 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
Oops, something went wrong.