-
Notifications
You must be signed in to change notification settings - Fork 10
feat(ci/cd): Improve deployment pipeline efficiency #1158
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
Open
Ayush8923
wants to merge
8
commits into
main
Choose a base branch
from
feat/improve-ci/cd-pipeline
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+121
−6
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6fdb7ff
feat(*): improve ci/cd pipeline
Ayush8923 8e46360
fix(*): update the deployment script
Ayush8923 91a321e
Merge branch 'main' into feat/improve-ci/cd-pipeline
Ayush8923 c63123b
fix(*): update the deployment script
Ayush8923 896519e
Merge branch 'feat/improve-ci/cd-pipeline' of https://github.com/Proj…
Ayush8923 daed54e
fix(*): added the docker build checks in the ci
Ayush8923 0a17a75
fix(*): update the timeout min
Ayush8923 28f1ce7
Merge branch 'main' into feat/improve-ci/cd-pipeline
Ayush8923 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,49 @@ | ||
| name: PR Title Check | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: [opened, edited, reopened, synchronize] | ||
|
|
||
| permissions: | ||
| pull-requests: read | ||
|
|
||
| concurrency: | ||
| group: pr-title-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| validate: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Validate PR title follows Conventional Commits | ||
| env: | ||
| PR_TITLE: ${{ github.event.pull_request.title }} | ||
| run: | | ||
| # type(scope): summary — scope optional, `!` marks a breaking change. | ||
| # Keep types in sync with what the PR formatter is allowed to emit. | ||
| PATTERN='^(feat|fix|chore|docs|refactor|perf|test|ci|build|style|revert)(\([a-z0-9 _/-]+\))?!?: .+' | ||
|
|
||
| echo "Checking PR title: $PR_TITLE" | ||
| if echo "$PR_TITLE" | grep -qE "$PATTERN"; then | ||
| echo "PR title is valid." | ||
| exit 0 | ||
| fi | ||
|
|
||
| echo "::error title=Invalid PR title::'$PR_TITLE' is not in Conventional Commits format" | ||
| { | ||
| echo "### ❌ PR title is not in Conventional Commits format" | ||
| echo "" | ||
| echo "**Your title:** \`$PR_TITLE\`" | ||
| echo "" | ||
| echo "**Required format:** \`type(scope): short summary\` (scope is optional)" | ||
| echo "" | ||
| echo "**Allowed types:** feat, fix, chore, docs, refactor, perf, test, ci, build, style, revert" | ||
| echo "" | ||
| echo "**Good examples:**" | ||
| echo "- \`feat(collection): Add new fields\`" | ||
| echo "- \`fix(auth): Correct token expiry check\`" | ||
| echo "- \`chore(ci): Add PR title check workflow\`" | ||
| echo "" | ||
| echo "Edit the PR title to match and this check re-runs automatically." | ||
| } >> "$GITHUB_STEP_SUMMARY" | ||
| exit 1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a timeout of 20 minutes so the workflow has a maximum runtime of 20 minutes, eliminating the need to add a sleep method here.