Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve release pipelines #2328

Merged
merged 3 commits into from Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 7 additions & 12 deletions .github/workflows/release.yml
Expand Up @@ -4,12 +4,11 @@ on:
branches:
- main
- backport-release-*
paths-ignore:
- "**.md"
- "docs/**"
- "website/**"
- "cdk.tf/**"
- "tools/update-github-project-board/**"
paths:
- "packages/**"
- "tools/**"
- "package.json"
- "yarn.lock"

env:
SENTRY_ORG: hashicorp
Expand Down Expand Up @@ -90,24 +89,18 @@ jobs:
secrets: inherit

examples:
needs:
- prepare-release
uses: ./.github/workflows/examples.yml
with:
concurrency_group_prefix: release
secrets: inherit

linting:
needs:
- prepare-release
uses: ./.github/workflows/linting.yml
with:
concurrency_group_prefix: release
secrets: inherit

unit_test:
needs:
- prepare-release
uses: ./.github/workflows/unit.yml
strategy:
fail-fast: false
Expand All @@ -119,6 +112,8 @@ jobs:
"@cdktf/hcl2cdk",
"@cdktf/hcl2json",
"@cdktf/provider-generator",
"@cdktf/commons",
"@cdktf/cli-core",
]
terraform_version: ["1.1.9", "1.2.8"]
with:
Expand Down
19 changes: 7 additions & 12 deletions .github/workflows/release_next.yml
Expand Up @@ -3,12 +3,11 @@ on:
push:
branches:
- main
paths-ignore:
- "**.md"
- "docs/**"
- "website/**"
- "cdk.tf/**"
- "tools/update-github-project-board/**"
paths:
- "packages/**"
- "tools/**"
- "package.json"
- "yarn.lock"

env:
SENTRY_ORG: hashicorp
Expand Down Expand Up @@ -88,8 +87,6 @@ jobs:
run: git push --follow-tags

unit_test:
needs:
- prepare-release
uses: ./.github/workflows/unit.yml
strategy:
fail-fast: false
Expand All @@ -101,6 +98,8 @@ jobs:
"@cdktf/hcl2cdk",
"@cdktf/hcl2json",
"@cdktf/provider-generator",
"@cdktf/commons",
"@cdktf/cli-core",
]
terraform_version: ["1.1.9", "1.2.8"]
with:
Expand All @@ -110,8 +109,6 @@ jobs:
secrets: inherit

linting:
needs:
- prepare-release
uses: ./.github/workflows/linting.yml
with:
concurrency_group_prefix: release-next
Expand All @@ -127,8 +124,6 @@ jobs:
secrets: inherit

examples:
needs:
- prepare-release
uses: ./.github/workflows/examples.yml
with:
concurrency_group_prefix: release-next
Expand Down