Skip to content

Commit

Permalink
[ci] fix publish of provider packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ydkn committed Nov 17, 2024
1 parent 5080912 commit ee250c6
Show file tree
Hide file tree
Showing 17 changed files with 520 additions and 27 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,18 @@ jobs:
args: -p 3 release --clean
version: latest
- name: Publish provider packages
uses: osiegmar/s3-publisher-action@v1
uses: imehedi/actions-awscli-v2@latest
with:
args: s3 cp --endpoint-url="${{ secrets.AWS_ENDPOINT_URL }}" dist/ "s3://${{ secrets.AWS_S3_BUCKET }}/pulumi-k0s/" --recursive --exclude="*" --include="pulumi-resource-*.tar.gz"
env:
AWS_ENDPOINT_URL: "${{ secrets.AWS_ENDPOINT_URL }}"
AWS_REGION: "${{ secrets.AWS_REGION }}"
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
with:
bucket: "${{ secrets.AWS_S3_BUCKET }}"
prefix: pulumi-k0s/
dir: dist
includes: |
pulumi-resource-*.tar.gz
delete-orphaned: false
AWS_REGION: "${{ secrets.AWS_REGION }}"
strategy:
fail-fast: true
matrix:
goversion:
- 1.21.x
- 1.23.x
publish_sdk:
name: Publish SDKs
runs-on: ubuntu-latest
Expand All @@ -85,7 +79,7 @@ jobs:
with:
go-version: ${{ matrix.goversion }}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.5.0
uses: jaxxstorm/action-install-gh-release@v1.13.0
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
Expand Down Expand Up @@ -121,7 +115,7 @@ jobs:
- name: Compress SDK folder
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.language }}-sdk.tar.gz
path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz
Expand Down
2 changes: 2 additions & 0 deletions provider/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ func (c Cluster) Create(
return name, olds, err
}

olds.ClusterInputs = news

if news.Kubeconfig != nil {
olds.Kubeconfig = news.Kubeconfig
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Pulumi.K0s.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Pulumi" Version="[3.54.1.0,4)" />
<PackageReference Include="Pulumi" Version="[3.66.1.0,4)" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/k0s/cluster.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/go/k0s/config/config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/go/k0s/init.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/go/k0s/provider.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/go/k0s/pulumiTypes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build": "tsc"
},
"dependencies": {
"@pulumi/pulumi": "^3.42.0"
"@pulumi/pulumi": "^3.136.0"
},
"devDependencies": {
"@types/node": "^14",
Expand Down
Loading

0 comments on commit ee250c6

Please sign in to comment.