diff --git a/.github/workflows/artifact-cleanup.yml b/.github/workflows/artifact-cleanup.yml index 0a00ebce6d2..63b7d5ab96b 100644 --- a/.github/workflows/artifact-cleanup.yml +++ b/.github/workflows/artifact-cleanup.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + jobs: remove-old-artifacts: runs-on: ubuntu-latest diff --git a/.github/workflows/command-dispatch.yml b/.github/workflows/command-dispatch.yml index e5b93415319..ec5b5966411 100644 --- a/.github/workflows/command-dispatch.yml +++ b/.github/workflows/command-dispatch.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + env: AWS_REGION: us-west-2 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/community-moderation.yml b/.github/workflows/community-moderation.yml index 3b5dd348a62..3abd2e4d57f 100644 --- a/.github/workflows/community-moderation.yml +++ b/.github/workflows/community-moderation.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d329998a79f..cf9f942864f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + env: AWS_REGION: us-west-2 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -303,6 +305,61 @@ jobs: - 16.x pythonversion: - "3.9" + publish_java_sdk: + continue-on-error: true + name: publish_java_sdk + needs: publish + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Checkout Scripts Repo + uses: actions/checkout@v3 + with: + path: ci-scripts + repository: pulumi/scripts + - name: Unshallow clone for tags + run: git fetch --prune --unshallow --tags + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{matrix.goversion}} + - name: Install pulumictl + uses: jaxxstorm/action-install-gh-release@v1.5.0 + with: + repo: pulumi/pulumictl + - name: Install Pulumi CLI + uses: pulumi/action-install-pulumi-cli@v2 + - name: Setup Java + uses: actions/setup-java@v3 + with: + cache: gradle + distribution: temurin + java-version: ${{matrix.javaversion}} + - 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 + - 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 + strategy: + fail-fast: true + matrix: + goversion: + - 1.19.x + javaversion: + - "11" publish_sdk: name: publish_sdk needs: publish @@ -340,12 +397,6 @@ 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: @@ -370,28 +421,11 @@ 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 @@ -406,8 +440,6 @@ jobs: - 3.1.301 goversion: - 1.19.x - javaversion: - - "11" nodeversion: - 16.x pythonversion: diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 348293e8bfd..b0314bfa50b 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + env: AWS_REGION: us-west-2 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -303,6 +305,61 @@ jobs: - 16.x pythonversion: - "3.9" + publish_java_sdk: + continue-on-error: true + name: publish_java_sdk + needs: publish + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Checkout Scripts Repo + uses: actions/checkout@v3 + with: + path: ci-scripts + repository: pulumi/scripts + - name: Unshallow clone for tags + run: git fetch --prune --unshallow --tags + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{matrix.goversion}} + - name: Install pulumictl + uses: jaxxstorm/action-install-gh-release@v1.5.0 + with: + repo: pulumi/pulumictl + - name: Install Pulumi CLI + uses: pulumi/action-install-pulumi-cli@v2 + - name: Setup Java + uses: actions/setup-java@v3 + with: + cache: gradle + distribution: temurin + java-version: ${{matrix.javaversion}} + - 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 + - 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 + strategy: + fail-fast: true + matrix: + goversion: + - 1.19.x + javaversion: + - "11" publish_sdk: name: publish_sdk needs: publish @@ -340,12 +397,6 @@ 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: @@ -370,28 +421,11 @@ 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 @@ -406,8 +440,6 @@ jobs: - 3.1.301 goversion: - 1.19.x - javaversion: - - "11" nodeversion: - 16.x pythonversion: diff --git a/.github/workflows/nightly-test.yml b/.github/workflows/nightly-test.yml index 9f37faf47cb..cf6f006fdda 100644 --- a/.github/workflows/nightly-test.yml +++ b/.github/workflows/nightly-test.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + env: AWS_REGION: us-west-2 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 75714b8bcb9..220ef31d9a8 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + env: AWS_REGION: us-west-2 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -247,6 +249,61 @@ jobs: - 16.x pythonversion: - "3.9" + publish_java_sdk: + continue-on-error: true + name: publish_java_sdk + needs: publish + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Checkout Scripts Repo + uses: actions/checkout@v3 + with: + path: ci-scripts + repository: pulumi/scripts + - name: Unshallow clone for tags + run: git fetch --prune --unshallow --tags + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{matrix.goversion}} + - name: Install pulumictl + uses: jaxxstorm/action-install-gh-release@v1.5.0 + with: + repo: pulumi/pulumictl + - name: Install Pulumi CLI + uses: pulumi/action-install-pulumi-cli@v2 + - name: Setup Java + uses: actions/setup-java@v3 + with: + cache: gradle + distribution: temurin + java-version: ${{matrix.javaversion}} + - 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 + - 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 + strategy: + fail-fast: true + matrix: + goversion: + - 1.19.x + javaversion: + - "11" publish_sdk: name: publish_sdk needs: publish @@ -284,12 +341,6 @@ 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: @@ -314,28 +365,11 @@ 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 @@ -350,8 +384,6 @@ jobs: - 3.1.301 goversion: - 1.19.x - javaversion: - - "11" nodeversion: - 16.x pythonversion: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f85f82c5df2..c2ebc6a2f78 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + env: AWS_REGION: us-west-2 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92a683f770a..2bb15c0fbbf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + env: AWS_REGION: us-west-2 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -260,6 +262,61 @@ jobs: - 16.x pythonversion: - "3.9" + publish_java_sdk: + continue-on-error: true + name: publish_java_sdk + needs: publish + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Checkout Scripts Repo + uses: actions/checkout@v3 + with: + path: ci-scripts + repository: pulumi/scripts + - name: Unshallow clone for tags + run: git fetch --prune --unshallow --tags + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{matrix.goversion}} + - name: Install pulumictl + uses: jaxxstorm/action-install-gh-release@v1.5.0 + with: + repo: pulumi/pulumictl + - name: Install Pulumi CLI + uses: pulumi/action-install-pulumi-cli@v2 + - name: Setup Java + uses: actions/setup-java@v3 + with: + cache: gradle + distribution: temurin + java-version: ${{matrix.javaversion}} + - 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 + - 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 + strategy: + fail-fast: true + matrix: + goversion: + - 1.19.x + javaversion: + - "11" publish_sdk: name: publish_sdk needs: publish @@ -297,12 +354,6 @@ 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: @@ -327,28 +378,11 @@ 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 @@ -363,8 +397,6 @@ jobs: - 3.1.301 goversion: - 1.19.x - javaversion: - - "11" nodeversion: - 16.x pythonversion: diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index ab55c4b154d..f602b2cb9c3 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + env: AWS_REGION: us-west-2 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/update-bridge.yml b/.github/workflows/update-bridge.yml index 30042c5c2fb..beda48331a1 100644 --- a/.github/workflows/update-bridge.yml +++ b/.github/workflows/update-bridge.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PULUMI_EXTRA_MAPPING_ERROR: false @@ -64,14 +66,6 @@ jobs: title: Update pulumi-terraform-bridge to v${{ github.event.inputs.bridge_version }} token: ${{ secrets.PULUMI_BOT_TOKEN }} - - if: steps.create-pr.outputs.pull-request-operation == 'created' - name: Set Automerge - uses: peter-evans/enable-pull-request-automerge@v1 - with: - merge-method: squash - pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }} - repository: ${{ github.repository }} - token: ${{ secrets.PULUMI_BOT_TOKEN }} strategy: fail-fast: true matrix: diff --git a/.github/workflows/update-upstream-provider.yml b/.github/workflows/update-upstream-provider.yml index 0c579572274..ac453b08ebe 100644 --- a/.github/workflows/update-upstream-provider.yml +++ b/.github/workflows/update-upstream-provider.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + env: AWS_REGION: us-west-2 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.golangci.yml b/.golangci.yml index cb00f10ccac..565aff5d17f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + linters: enable: - deadcode diff --git a/.goreleaser.prerelease.yml b/.goreleaser.prerelease.yml index 2caa98c9d51..24fbc785ebe 100644 --- a/.goreleaser.prerelease.yml +++ b/.goreleaser.prerelease.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + archives: - id: archive name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}" @@ -28,7 +30,7 @@ builds: ldflags: - -X github.com/pulumi/pulumi-aws/provider/v5/pkg/version.Version={{.Tag}} - -X - github.com/terraform-providers/terraform-provider-aws/version.ProviderVersion={{.Tag}} + github.com/hashicorp/terraform-provider-aws/version.ProviderVersion={{.Tag}} main: ./cmd/pulumi-resource-aws/ changelog: skip: true diff --git a/.goreleaser.yml b/.goreleaser.yml index d844c9f3868..48108fefd24 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,5 @@ +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt + archives: - id: archive name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}" @@ -28,7 +30,7 @@ builds: ldflags: - -X github.com/pulumi/pulumi-aws/provider/v5/pkg/version.Version={{.Tag}} - -X - github.com/terraform-providers/terraform-provider-aws/version.ProviderVersion={{.Tag}} + github.com/hashicorp/terraform-provider-aws/version.ProviderVersion={{.Tag}} main: ./cmd/pulumi-resource-aws/ changelog: filters: diff --git a/Makefile b/Makefile index 81208f9c21c..d9568dcc0be 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# WARNING: this file was generated by ci-mgmt. Do not edit directly! +# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt PACK := aws ORG := pulumi @@ -25,7 +25,7 @@ tfgen:: install_plugins (cd provider && VERSION=$(VERSION) go generate cmd/$(PROVIDER)/main.go) provider:: tfgen install_plugins - (cd provider && go build -p 1 -o $(WORKING_DIR)/bin/$(PROVIDER) -ldflags "-X $(PROJECT)/$(VERSION_PATH)=$(VERSION) -X github.com/terraform-providers/terraform-provider-aws/version.ProviderVersion=$(VERSION)" $(PROJECT)/$(PROVIDER_PATH)/cmd/$(PROVIDER)) + (cd provider && go build -p 1 -o $(WORKING_DIR)/bin/$(PROVIDER) -ldflags "-X $(PROJECT)/$(VERSION_PATH)=$(VERSION) -X github.com/hashicorp/terraform-provider-aws/version.ProviderVersion=$(VERSION)" $(PROJECT)/$(PROVIDER_PATH)/cmd/$(PROVIDER)) build_sdks:: build_nodejs build_python build_go build_dotnet build_java