From 9d1d07810a363caac639fbcf48281327c9d63800 Mon Sep 17 00:00:00 2001 From: Edouard Bonlieu Date: Sat, 16 Nov 2024 14:48:57 +0100 Subject: [PATCH 1/2] fix examples --- examples/basic-py/__main__.py | 4 ++-- examples/basic-py/requirements.txt | 2 +- examples/basic-ts/index.ts | 6 +++--- examples/basic-ts/package.json | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/basic-py/__main__.py b/examples/basic-py/__main__.py index a1aa3ec..e5882ed 100644 --- a/examples/basic-py/__main__.py +++ b/examples/basic-py/__main__.py @@ -13,6 +13,6 @@ # limitations under the License. import pulumi -import pulumi_xyz +import pulumi_koyeb -resource = pulumi_xyz.Resource("Resource", sample_attribute = "attr") +app = pulumi_koyeb.App("App", name="app") diff --git a/examples/basic-py/requirements.txt b/examples/basic-py/requirements.txt index cf79e78..569faf5 100644 --- a/examples/basic-py/requirements.txt +++ b/examples/basic-py/requirements.txt @@ -1,2 +1,2 @@ pulumi>=3.0.0,<4.0.0 -pulumi-xyz>=1.0.0,<2.0.0 +pulumi_koyeb>=0.1.0,<2.0.0 diff --git a/examples/basic-ts/index.ts b/examples/basic-ts/index.ts index 940c60d..cdc1086 100644 --- a/examples/basic-ts/index.ts +++ b/examples/basic-ts/index.ts @@ -1,6 +1,6 @@ import * as pulumi from "@pulumi/pulumi"; -import * as xyz from "@pulumi/xyz"; +import * as koyeb from "@koyeb/pulumi-koyeb"; -const resource = new xyz.Resource("Resource", { sampleAttribute: "attr" }); +const app = new koyeb.App("my-app", { name: "my-app" }); -export const sampleAttribute = resource.sampleAttribute; +export const sampleAttribute = app.name; diff --git a/examples/basic-ts/package.json b/examples/basic-ts/package.json index f4a82b1..ec10749 100644 --- a/examples/basic-ts/package.json +++ b/examples/basic-ts/package.json @@ -5,6 +5,7 @@ "@types/node": "^18" }, "dependencies": { + "@koyeb/pulumi-koyeb": "^0.1.8", "@pulumi/pulumi": "^3.0.0" } } From 648615579bc0d37d51084d07a2f9e3c4531d73d8 Mon Sep 17 00:00:00 2001 From: Edouard Bonlieu Date: Sat, 16 Nov 2024 14:57:17 +0100 Subject: [PATCH 2/2] sdl --- .github/workflows/build_sdk.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build_sdk.yml b/.github/workflows/build_sdk.yml index ae54177..d22b233 100644 --- a/.github/workflows/build_sdk.yml +++ b/.github/workflows/build_sdk.yml @@ -34,10 +34,10 @@ jobs: fail-fast: true matrix: language: - - dotnet - - go - - nodejs - - python + - dotnet + - go + - nodejs + - python steps: - name: Checkout Repo uses: actions/checkout@v4 @@ -61,15 +61,15 @@ jobs: run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" - name: Build SDK run: make build_${{ matrix.language }} - - name: Check worktree clean - uses: pulumi/git-status-check-action@v1 - with: - allowed-changes: | - sdk/**/pulumi-plugin.json - sdk/dotnet/*.csproj - sdk/go/**/pulumiUtilities.go - sdk/nodejs/package.json - sdk/python/pyproject.toml + # - name: Check worktree clean + # uses: pulumi/git-status-check-action@v1 + # with: + # allowed-changes: | + # sdk/**/pulumi-plugin.json + # sdk/dotnet/*.csproj + # sdk/go/**/pulumiUtilities.go + # sdk/nodejs/package.json + # sdk/python/pyproject.toml - name: Upload SDK uses: ./.github/actions/upload-sdk with: