Skip to content

Commit

Permalink
Upgrade to v0.13.5 of the Tailscale Terraform Provider (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 committed Aug 30, 2022
1 parent 2fd4af6 commit 04ff009
Show file tree
Hide file tree
Showing 127 changed files with 8,134 additions and 1,078 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/command-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
PROVIDER: tailscale
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_API: https://api.pulumi-staging.io
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TAILSCALE_API_KEY: ${{ secrets.TAILSCALE_API_KEY }}
TAILSCALE_TAILNET: ${{ secrets.TAILSCALE_TAILNET }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/community-moderation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
uses: dorny/paths-filter@v2
with:
filters: "changed: 'sdk/*'"
- if: steps.sdk_changed.outputs.changed == 'true'
- if: steps.sdk_changed.outputs.changed == 'true' &&
github.event.pull_request.head.repo.full_name != github.repository
name: Send codegen warning as comment on PR
uses: thollander/actions-comment-pull-request@v1
with:
Expand Down
109 changes: 80 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
PROVIDER: tailscale
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_API: https://api.pulumi-staging.io
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TAILSCALE_API_KEY: ${{ secrets.TAILSCALE_API_KEY }}
TAILSCALE_TAILNET: ${{ secrets.TAILSCALE_TAILNET }}
Expand All @@ -33,7 +38,7 @@ jobs:
with:
go-version: ${{matrix.goversion}}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.2.0
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
Expand All @@ -51,6 +56,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{matrix.pythonversion}}
- name: Setup Java
uses: actions/setup-java@v3
with:
cache: gradle
distribution: temurin
java-version: ${{matrix.javaversion}}
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
Expand All @@ -66,6 +77,9 @@ jobs:
run: make install_plugins
- name: Update path
run: echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Set PACKAGE_VERSION to Env
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
$GITHUB_ENV
- name: Build SDK
run: make build_${{ matrix.language }}
- name: Check worktree clean
Expand All @@ -90,16 +104,19 @@ jobs:
dotnetversion:
- 3.1.301
goversion:
- 1.18.x
- 1.19.x
javaversion:
- "11"
language:
- nodejs
- python
- dotnet
- go
- java
nodeversion:
- 14.x
- 16.x
pythonversion:
- "3.7"
- "3.9"
generate_coverage_data:
continue-on-error: true
env:
Expand Down Expand Up @@ -128,14 +145,14 @@ jobs:
with:
go-version: ${{matrix.goversion}}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.2.0
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- if: github.event_name == 'pull_request'
name: Install Schema Tools
uses: jaxxstorm/action-install-gh-release@v1.2.0
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: mikhailshilkov/schema-tools
- name: Echo Coverage Output Dir
Expand All @@ -155,7 +172,7 @@ jobs:
fail-fast: true
matrix:
goversion:
- 1.18.x
- 1.19.x
lint:
container: golangci/golangci-lint:latest
name: lint
Expand All @@ -175,7 +192,7 @@ jobs:
with:
go-version: ${{matrix.goversion}}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.2.0
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
Expand All @@ -192,7 +209,7 @@ jobs:
fail-fast: true
matrix:
goversion:
- 1.18.x
- 1.19.x
lint_sdk:
container: golangci/golangci-lint:latest
name: lint-sdk
Expand All @@ -213,7 +230,7 @@ jobs:
with:
go-version: ${{matrix.goversion}}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.2.0
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
Expand All @@ -230,7 +247,7 @@ jobs:
fail-fast: true
matrix:
goversion:
- 1.18.x
- 1.19.x
prerequisites:
name: prerequisites
runs-on: ubuntu-latest
Expand All @@ -249,14 +266,14 @@ jobs:
with:
go-version: ${{matrix.goversion}}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.2.0
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- if: github.event_name == 'pull_request'
name: Install Schema Tools
uses: jaxxstorm/action-install-gh-release@v1.2.0
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: mikhailshilkov/schema-tools
- name: Build tfgen & provider binaries
Expand Down Expand Up @@ -300,11 +317,11 @@ jobs:
dotnetversion:
- 3.1.301
goversion:
- 1.18.x
- 1.19.x
nodeversion:
- 14.x
- 16.x
pythonversion:
- "3.7"
- "3.9"
publish:
name: publish
needs: test
Expand All @@ -319,7 +336,7 @@ jobs:
with:
go-version: ${{matrix.goversion}}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.2.0
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
Expand Down Expand Up @@ -356,11 +373,11 @@ jobs:
dotnetversion:
- 3.1.301
goversion:
- 1.18.x
- 1.19.x
nodeversion:
- 14.x
- 16.x
pythonversion:
- "3.7"
- "3.9"
publish_sdk:
name: publish_sdk
needs: publish
Expand All @@ -380,7 +397,7 @@ jobs:
with:
go-version: ${{matrix.goversion}}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.2.0
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
Expand All @@ -398,6 +415,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{matrix.pythonversion}}
- name: Setup Java
uses: actions/setup-java@v3
with:
cache: gradle
distribution: temurin
java-version: ${{matrix.javaversion}}
- name: Download python SDK
uses: actions/download-artifact@v2
with:
Expand All @@ -422,11 +445,28 @@ jobs:
- name: Uncompress nodejs SDK
run: tar -zxf ${{github.workspace}}/sdk/nodejs.tar.gz -C
${{github.workspace}}/sdk/nodejs
- name: Download java SDK
uses: actions/download-artifact@v2
with:
name: java-sdk.tar.gz
path: ${{ github.workspace}}/sdk/
- name: Uncompress java SDK
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C
${{github.workspace}}/sdk/java
- run: python -m pip install pip twine
- env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Publish SDKs
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }}
- name: Set PACKAGE_VERSION to Env
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
$GITHUB_ENV
- name: Publish Java SDK
uses: gradle/gradle-build-action@9b814496b50909128c6a52622b416c5ffa04db49
with:
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
build-root-directory: ./sdk/java
gradle-version: 7.4.1
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
Expand All @@ -440,11 +480,13 @@ jobs:
dotnetversion:
- 3.1.301
goversion:
- 1.18.x
- 1.19.x
javaversion:
- "11"
nodeversion:
- 14.x
- 16.x
pythonversion:
- "3.7"
- "3.9"
test:
name: test
needs: build_sdk
Expand All @@ -464,7 +506,7 @@ jobs:
with:
go-version: ${{matrix.goversion}}
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1.2.0
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
Expand All @@ -482,6 +524,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{matrix.pythonversion}}
- name: Setup Java
uses: actions/setup-java@v3
with:
cache: gradle
distribution: temurin
java-version: ${{matrix.javaversion}}
- name: Download provider + tfgen binaries
uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -511,7 +559,7 @@ jobs:
- name: Install dependencies
run: make install_${{ matrix.language}}_sdk
- name: Install gotestfmt
uses: jaxxstorm/action-install-gh-release@v1.2.0
uses: jaxxstorm/action-install-gh-release@v1.5.0
with:
repo: haveyoudebuggedit/gotestfmt
- name: Run tests
Expand All @@ -530,16 +578,19 @@ jobs:
dotnetversion:
- 3.1.301
goversion:
- 1.18.x
- 1.19.x
javaversion:
- "11"
language:
- nodejs
- python
- dotnet
- go
- java
nodeversion:
- 14.x
- 16.x
pythonversion:
- "3.7"
- "3.9"
name: main
on:
push:
Expand Down
Loading

0 comments on commit 04ff009

Please sign in to comment.