-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ability to disable publishing to the Pulumi CDN (#1077)
Ability to disable publishing to the Pulumi CDN (`get.pulumi.com`) for non-Pulumi managed providers. Ran `make test-providers` which didn't render any changes, but it worked for my `pulumiverse/pulumi-acme` provider. --------- Co-authored-by: Daniel Bradley <daniel@pulumi.com>
- Loading branch information
1 parent
53d4b52
commit a5bd46d
Showing
40 changed files
with
2,657 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
provider: acme | ||
organization: pulumiverse | ||
major-version: 0 | ||
providerDefaultBranch: main | ||
upstreamProviderOrg: vancluever | ||
publishRegistry: false | ||
enableAutoRelease: false | ||
languages: | ||
- dotnet | ||
- go | ||
- nodejs | ||
- python | ||
publish: | ||
sdk: "all,!java" | ||
cdn: false | ||
license: | ||
ignore: | ||
# Package is licensed under Apache 2.0 but license is not picked up correctly by the license detector | ||
- github.com/OpenDNS/vegadns2client |
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,12 @@ | ||
FROM jetpackio/devbox:latest | ||
|
||
# Installing your devbox project | ||
WORKDIR /code | ||
COPY devbox.json devbox.json | ||
COPY devbox.lock devbox.lock | ||
RUN sudo chown -R "${DEVBOX_USER}:${DEVBOX_USER}" /code | ||
|
||
|
||
RUN devbox run -- echo "Installed Packages." | ||
|
||
RUN devbox shellenv --init-hook >> ~/.profile |
16 changes: 16 additions & 0 deletions
16
provider-ci/test-providers/acme/.devcontainer/devcontainer.json
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": "Devbox Remote Container", | ||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": ".." | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": [ | ||
"jetpack-io.devbox" | ||
] | ||
} | ||
}, | ||
"remoteUser": "devbox" | ||
} |
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 @@ | ||
sdk/**/* linguist-generated=true |
69 changes: 69 additions & 0 deletions
69
provider-ci/test-providers/acme/.github/ISSUE_TEMPLATE/bug.yaml
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,69 @@ | ||
name: Bug Report | ||
description: Report something that's not working correctly | ||
labels: ["kind/bug", "needs-triage"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
You can also ask questions on our [Community Slack](https://slack.pulumi.com/). | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: Describe what happened | ||
description: Please summarize what happened, including what Pulumi commands you ran, as well as | ||
an inline snippet of any relevant error or console output. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: sample-program | ||
attributes: | ||
label: Sample program | ||
description: | | ||
<details><summary>Provide a reproducible sample program</summary> | ||
If this is a bug you encountered while running a Pulumi command, please provide us with a minimal, | ||
self-contained Pulumi program that reproduces this behavior so that we can investigate on our end. | ||
Without a functional reproduction, we will not be able to prioritize this bug. | ||
**Note:** If the program output is more than a few lines, please send us a Gist or a link to a file. | ||
</details> | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: log-output | ||
attributes: | ||
label: Log output | ||
description: | | ||
<details><summary>How to Submit Logs</summary> | ||
If this is something that is dependent on your environment, please also provide us with the output of | ||
`pulumi up --logtostderr --logflow -v=10` from the root of your project. | ||
We may also ask you to supply us with debug output following [these steps](https://www.pulumi.com/docs/using-pulumi/pulumi-packages/debugging-provider-packages/). | ||
**Note:** If the log output is more than a few lines, please send us a Gist or a link to a file. | ||
</details> | ||
- type: textarea | ||
id: resources | ||
attributes: | ||
label: Affected Resource(s) | ||
description: Please list the affected Pulumi Resource(s) or Function(s). | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: versions | ||
attributes: | ||
label: Output of `pulumi about` | ||
description: Provide the output of `pulumi about` from the root of your project. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: ctx | ||
attributes: | ||
label: Additional context | ||
description: Anything else you would like to add? | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: voting | ||
attributes: | ||
label: Contributing | ||
value: | | ||
Vote on this issue by adding a 👍 reaction. | ||
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already). |
35 changes: 35 additions & 0 deletions
35
provider-ci/test-providers/acme/.github/ISSUE_TEMPLATE/epic.md
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,35 @@ | ||
--- | ||
name: Epic | ||
about: Tracks a shippable unit of work | ||
title: '[Epic] {your-title-here}' | ||
labels: kind/epic | ||
projects: ['pulumi/32'] | ||
assignees: '' | ||
type: Epic | ||
--- | ||
|
||
## Overview | ||
<!-- Start with a one- to three-sentence summary that should be understandable by any Pulumian or community member, even those without any context on the work. --> | ||
|
||
## Key KPIs | ||
<!-- What KPIs should this Epic will move; what could we measure to observe that this project was successful? --> | ||
|
||
## Key Stakeholders | ||
- Product and Engineering: <!-- Teams and individuals involved in the design and implementation --> | ||
- Documentation: <!-- Representative from the docs team --> | ||
- Marketing/Partnerships: <!-- Representative from the Marketing team --> | ||
- Customers: <!-- [Tracking Issue](add-link-and-uncomment) --> | ||
|
||
## Key Deliverables | ||
<!-- List any discrete chunks of work or milestones that are planned in the epic (eg. subcomponent A, dogfood release, beta, etc.) --> | ||
|
||
### References 📔 | ||
|
||
<!-- Any project that is more than one iteration should have a Project Board using this [template](https://github.com/orgs/pulumi/projects/131). --> | ||
- [ ] Project View <!-- [Link](add-link-and-uncomment) --> | ||
- [ ] PR/FAQ <!-- [Link](add-link-and-uncomment) --> | ||
- [ ] Design Doc <!-- [Link](add-link-and-uncomment) --> | ||
- [ ] UX Designs <!-- [Link](add-link-and-uncomment) --> | ||
- [ ] Decision Log <!-- [Link](add-link-and-uncomment) --> | ||
|
||
<!-- Work items should be added to the project board linked above --> |
16 changes: 16 additions & 0 deletions
16
provider-ci/test-providers/acme/.github/actions/download-bin/action.yml
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: acme-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-*-acme" -print -exec chmod +x {} \; |
19 changes: 19 additions & 0 deletions
19
provider-ci/test-providers/acme/.github/actions/download-sdk/action.yml
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 }} |
81 changes: 81 additions & 0 deletions
81
provider-ci/test-providers/acme/.github/actions/setup-tools/action.yml
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,81 @@ | ||
name: Setup tools | ||
description: Installs Go, Pulumi, pulumictl, schema-tools, Node.JS, Python, dotnet and Java. | ||
|
||
inputs: | ||
tools: | ||
description: | | ||
Comma separated list of tools to install. The default of "all" installs all tools. Available tools are: | ||
go | ||
pulumicli | ||
pulumictl | ||
schema-tools | ||
nodejs | ||
python | ||
dotnet | ||
java | ||
default: all | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Go | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'go') | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.21.x" | ||
cache-dependency-path: | | ||
provider/*.sum | ||
upstream/*.sum | ||
sdk/*.sum | ||
- name: Install pulumictl | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'pulumictl') | ||
uses: jaxxstorm/action-install-gh-release@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 | ||
with: | ||
pulumi-version: "dev" | ||
|
||
- name: Install Schema Tools | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'schema-tools') | ||
uses: jaxxstorm/action-install-gh-release@v1.11.0 | ||
with: | ||
repo: pulumi/schema-tools | ||
|
||
- name: Setup Node | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'nodejs') | ||
uses: actions/setup-node@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 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: Setup Python | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'python') | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11.8 | ||
|
||
- name: Setup Java | ||
if: inputs.tools == 'all' || contains(inputs.tools, 'java') | ||
uses: actions/setup-java@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 | ||
with: | ||
gradle-version: 7.6 |
15 changes: 15 additions & 0 deletions
15
provider-ci/test-providers/acme/.github/actions/upload-bin/action.yml
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-acme pulumi-tfgen-acme | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: acme-provider.tar.gz | ||
path: ${{ github.workspace }}/bin/provider.tar.gz | ||
retention-days: 30 |
20 changes: 20 additions & 0 deletions
20
provider-ci/test-providers/acme/.github/actions/upload-sdk/action.yml
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 |
Oops, something went wrong.