Skip to content

Commit

Permalink
[internal] Update GitHub Actions workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Nov 17, 2022
1 parent 7c1a1af commit 47e08d9
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 0 deletions.
122 changes: 122 additions & 0 deletions .github/workflows/resync-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt

env:
ARM_CLIENT_ID: 30e520fa-12b4-4e21-b473-9426c5ac2e1e
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
ARM_SUBSCRIPTION_ID: 0282681f-7a9e-424b-80b2-96babd57a8a1
ARM_TENANT_ID: 706143bc-e1d4-4593-aee2-c9dc60ab9be7
AWS_REGION: us-west-2
AZURE_LOCATION: westus
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
PROVIDER: docker
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_EXTRA_MAPPING_ERROR: true
PULUMI_GO_DEP_ROOT: /home/runner/work/pulumi-docker
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
PULUMI_MISSING_MAPPING_ERROR: true
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 }}
TRAVIS_OS_NAME: linux
jobs:
resync_build:
name: resync-build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Checkout repo
uses: actions/checkout@v3
with:
path: ci-mgmt
repository: pulumi/ci-mgmt
- id: run-url
name: Create URL to the run output
run: echo ::set-output
name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
- 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/[email protected]
with:
repo: pulumi/pulumictl
- name: Install Pulumi CLI
uses: pulumi/action-install-pulumi-cli@v2
- name: Setup DotNet
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{matrix.dotnetversion}}
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{matrix.nodeversion}}
registry-url: https://registry.npmjs.org
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{matrix.pythonversion}}
- name: Sync with ci-mgmt
run: cp -r ci-mgmt/provider-ci/providers/$PROVIDER/repo/. .
- name: Remove ci-mgmt directory
run: rm -rf ci-mgmt
- name: Required entries for gitignore
run: |-
cat <<- EOF > $RUNNER_TEMP/gitignore
sdk/java/build
sdk/java/.gradle
sdk/java/gradle
sdk/java/gradlew
sdk/java/gradlew.bat
EOF
shell: bash
- name: Adding missing lines to .gitignore
run: comm -23 <(sort $RUNNER_TEMP/gitignore) <(sort .gitignore) >> .gitignore
shell: bash
- name: Build
run: make build
- name: Create PR (no linked issue)
uses: peter-evans/[email protected]
with:
author: pulumi-bot <[email protected]>
base: master
body: This pull request was generated automatically by the resync-build workflow
in this repository.
branch: pulumi-bot/resync-${{ github.run_id}}
commit-message: Resync build for pulumi-${{ env.PROVIDER }}
committer: pulumi-bot <[email protected]>
labels: impact/no-changelog-required
team-reviewers: platform-integrations
title: Fix up build for pulumi-${{ env.PROVIDER }}
token: ${{ secrets.PULUMI_BOT_TOKEN }}
strategy:
fail-fast: true
matrix:
dotnetversion:
- 3.1.301
goversion:
- 1.19.x
nodeversion:
- 16.x
pythonversion:
- "3.9"
name: Resync build
on:
workflow_dispatch:
inputs:
automerge:
default: false
description: Mark created PR for auto-merging?
required: true
type: boolean
9 changes: 9 additions & 0 deletions .github/workflows/update-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ 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' &&
github.event.inputs.automerge == 'true'
run: gh pr merge --auto --squash ${{ steps.create-pr.outputs.pull-request-number
}}
strategy:
fail-fast: true
matrix:
Expand All @@ -81,6 +85,11 @@ name: Update pulumi-terraform-bridge
on:
workflow_dispatch:
inputs:
automerge:
default: false
description: Mark created PR for auto-merging?
required: true
type: boolean
bridge_version:
description: The version of pulumi/pulumi-terraform-bridge to update to. Do not
include the 'v' prefix. Must be major version 3.
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/update-upstream-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ name: Update upstream provider
on:
workflow_dispatch:
inputs:
automerge:
default: false
description: Mark created PR for auto-merging?
required: true
type: boolean
linked_issue_number:
description: The issue number of a PR in this repository to which the generated
pull request should be linked.
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ build_dotnet:

build_go:
$(WORKING_DIR)/bin/$(TFGEN) go --overlays provider/overlays/go --out sdk/go/
cd sdk && go list `grep -e "^module" go.mod | cut -d ' ' -f 2`/go/... | xargs go build

build_java: PACKAGE_VERSION := $(shell pulumictl get version --language generic)
build_java: bin/pulumi-java-gen
Expand Down

0 comments on commit 47e08d9

Please sign in to comment.