Skip to content

Commit

Permalink
chore: update provider (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirien authored Jul 2, 2023
1 parent fcc97c6 commit cbc8fa5
Show file tree
Hide file tree
Showing 35 changed files with 75 additions and 1,502 deletions.
11 changes: 11 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM --platform=linux/amd64 pulumi/pulumi:3.74.0

# Install pulumictl and set to PATH
RUN curl -fsSL https://get.pulumi.com | sh
ENV PATH="/root/.pulumi/bin:${PATH}"

# create a directory for pulumictl and download the binary to it and set to PATH
RUN mkdir -p /root/pulumictl && cd /root/pulumictl/
RUN wget https://github.com/pulumi/pulumictl/releases/download/v0.0.42/pulumictl-v0.0.42-linux-amd64.tar.gz -O /root/pulumictl/pulumictl-v0.0.42-linux-amd64.tar.gz
RUN tar -xvf /root/pulumictl/pulumictl-v0.0.42-linux-amd64.tar.gz -C /root/pulumictl/
ENV PATH="//root/pulumictl/:${PATH}"
12 changes: 12 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"golang.go"
]
}
}
}
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,14 @@ updates:
commit-message:
prefix: "chore"
include: "scope"
- package-ecosystem: "docker"
directory: ".devcontainer"
schedule:
interval: "weekly"
day: "sunday"
time: "08:00"
labels:
- "dependencies"
commit-message:
prefix: "chore"
include: "scope"
7 changes: 5 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

permissions:
contents: write

id-token: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -40,6 +40,8 @@ jobs:
repo: pulumi/pulumictl
- name: Set PreRelease Version
run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" >> $GITHUB_ENV
- uses: sigstore/cosign-installer@d13028333d784fcc802b67ec924bcebe75aa0a5f # v3.1.0
- uses: anchore/sbom-action/download-syft@78fc58e266e87a38d4194b2137a3d4e9bcaf7ca1 # v0.14.3
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # tag=v4.3.0
with:
Expand Down Expand Up @@ -116,6 +118,7 @@ jobs:
access: "public"
token: ${{ env.NPM_TOKEN }}
package: ${{github.workspace}}/sdk/nodejs/bin/package.json
provenance: true
- if: ${{ matrix.language == 'dotnet' && env.PUBLISH_NUGET == 'true' }}
name: publish nuget package
run: |
Expand All @@ -134,6 +137,6 @@ jobs:
- dotnet
- go
nodeversion:
- 16.x
- 18.x
pythonversion:
- "3.9"
22 changes: 22 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,28 @@ builds:
- -X github.com/pulumiverse/pulumi-purrl/provider/pkg/version.Version={{.Tag }}
main: ./cmd/pulumi-resource-purrl/

signs:
- cmd: cosign
env:
- COSIGN_EXPERIMENTAL=1
certificate: '${artifact}.pem'
args:
- sign-blob
- '-y'
- '--output-certificate=${certificate}'
- '--bundle=${signature}'
- '${artifact}'
artifacts: all
output: true

sboms:
- artifacts: archive
- id: source
artifacts: source

source:
enabled: true

release:
disable: false
prerelease: auto
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ java_sdk::
gradle --console=plain build

.PHONY: build
build:: codegen provider go_sdk dotnet_sdk nodejs_sdk python_sdk java_sdk
build:: codegen provider go_sdk dotnet_sdk nodejs_sdk python_sdk #java_sdk

# Required for the codegen action that runs in pulumi/pulumi
only_build:: build
Expand Down
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/pkg/term v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.72.0 // indirect
github.com/pulumi/pulumi/pkg/v3 v3.74.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rogpeppe/go-internal v1.10.0 // indirect
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ github.com/pulumi/pulumi-go-provider v0.10.0 h1:tgX2QPBLjgO4GSmCXW5ARzq7Mmna51jZ
github.com/pulumi/pulumi-go-provider v0.10.0/go.mod h1:6yOfJ+g5JkflllURGekK7lncGBaLLbSuwAfHpuTD+E4=
github.com/pulumi/pulumi-go-provider/integration v0.10.0 h1:GHesnrrvkboSjkZpC+qRwjkXBp5d+fSXqlIO92zQxvc=
github.com/pulumi/pulumi-go-provider/integration v0.10.0/go.mod h1:qAbKHpPzANFKOyjiQ0CzdgJh4DtM0gtujKhO7+l3/+w=
github.com/pulumi/pulumi/pkg/v3 v3.72.0 h1:U7g7yAEwlfVIme0e+MmoWxArHYFTRpo8JX83KTQRuRg=
github.com/pulumi/pulumi/pkg/v3 v3.72.0/go.mod h1:Bug/Xi21nzRtrD7Lx+rTBtQUrzyuiaj6rL6RAKMZLRo=
github.com/pulumi/pulumi/pkg/v3 v3.74.0 h1:akL3ytYRgytJnlfj3hYyhNq15EiN5GGdlTB0vupxB7I=
github.com/pulumi/pulumi/pkg/v3 v3.74.0/go.mod h1:HF+q4SozI1SZj8idzw0Kx3MIOH82m7er19PfVLUbDS0=
github.com/pulumi/pulumi/sdk/v3 v3.74.0 h1:U+7fc/iLFy/aZMyQNOSxrp2voqBk8VKLyodgwkmAt7Q=
github.com/pulumi/pulumi/sdk/v3 v3.74.0/go.mod h1:BUUBfQZsH0FPuznRfFHkR+b96VlXELnn+DgidFj4XSQ=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
Expand Down
1 change: 0 additions & 1 deletion sdk/dotnet/Pulumiverse.Purrl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<UseSharedCompilation>false</UseSharedCompilation>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/purrl/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/purrl/provider.go

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

4 changes: 2 additions & 2 deletions sdk/go/purrl/pulumiUtilities.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/purrl/purrl.go

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

1 change: 0 additions & 1 deletion sdk/java/README.md

This file was deleted.

148 changes: 0 additions & 148 deletions sdk/java/build.gradle

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
2 changes: 0 additions & 2 deletions sdk/java/build/tmp/jar/MANIFEST.MF

This file was deleted.

14 changes: 0 additions & 14 deletions sdk/java/settings.gradle

This file was deleted.

47 changes: 0 additions & 47 deletions sdk/java/src/main/java/com/pulumiverse/purrl/Provider.java

This file was deleted.

Loading

0 comments on commit cbc8fa5

Please sign in to comment.