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

ci: deploy some apps preview only when PR has label #5258

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

shoom3301
Copy link
Collaborator

@shoom3301 shoom3301 commented Dec 26, 2024

Summary

Since this repo includes multiple apps, we do not want to build all of them on each PR because it causes long build queues in Vercel.
Some apps (see the list bellow) are not required to be built on each PR so we run them only a PR is labeled with a specific label.
This label is defined in the project settings on Vercel in Settings/Git/Ignored Build Step script.
For example, the label for the widget-configurator is preview-widget-cfg:

node tools/scripts/ignore-build-step.js --app=preview-widget-cfg

List of applications and their labels:

  • widget-configurator: preview-widget-cfg
  • cosmos: preview-cosmos
  • sdk-tools: preview-sdk-tools

In addition, I expanded the list of branches that should not be deployed in preview.
Before this fix only configuration branch was excluded, now:

['main', 'configuration', 'release-please--branches--main']

This PR is a demo of the new feature.
As you can see, widget-configurator is buit when cosmos and sdk-tools are skipped

Copy link

vercel bot commented Dec 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
cowfi 🔄 Building (Inspect) Visit Preview Dec 31, 2024 1:19pm
explorer-dev 🔄 Building (Inspect) Visit Preview Dec 31, 2024 1:19pm
swap-dev 🔄 Building (Inspect) Visit Preview Dec 31, 2024 1:19pm
widget-configurator 🔄 Building (Inspect) Visit Preview Dec 31, 2024 1:19pm
2 Skipped Deployments
Name Status Preview Updated (UTC)
cosmos ⬜️ Ignored (Inspect) Visit Preview Dec 31, 2024 1:19pm
sdk-tools ⬜️ Ignored (Inspect) Visit Preview Dec 31, 2024 1:19pm

@shoom3301 shoom3301 force-pushed the feat/manual-preview-build branch from 618b1c3 to f0b3f9d Compare December 26, 2024 07:53
@vercel vercel bot temporarily deployed to Preview – cosmos December 26, 2024 07:54 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-tools December 26, 2024 07:54 Inactive
@vercel vercel bot temporarily deployed to Preview – cowfi December 26, 2024 07:55 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-dev December 26, 2024 07:55 Inactive
@vercel vercel bot temporarily deployed to Preview – swap-dev December 26, 2024 07:56 Inactive
@shoom3301 shoom3301 force-pushed the feat/manual-preview-build branch from f0b3f9d to 9ee7973 Compare December 26, 2024 07:58
@vercel vercel bot temporarily deployed to Preview – cosmos December 26, 2024 07:59 Inactive
@vercel vercel bot temporarily deployed to Preview – cowfi December 26, 2024 07:59 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-dev December 26, 2024 07:59 Inactive
@vercel vercel bot temporarily deployed to Preview – swap-dev December 26, 2024 07:59 Inactive
@shoom3301 shoom3301 force-pushed the feat/manual-preview-build branch from 9ee7973 to 98918c2 Compare December 26, 2024 08:03
@vercel vercel bot temporarily deployed to Preview – cosmos December 26, 2024 08:04 Inactive
@vercel vercel bot temporarily deployed to Preview – cowfi December 26, 2024 08:04 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-tools December 26, 2024 08:04 Inactive
@shoom3301 shoom3301 force-pushed the feat/manual-preview-build branch from 98918c2 to 45460f3 Compare December 26, 2024 08:08
@vercel vercel bot temporarily deployed to Preview – cosmos December 26, 2024 08:09 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-tools December 26, 2024 08:09 Inactive
@vercel vercel bot temporarily deployed to Preview – swap-dev December 26, 2024 08:09 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-dev December 26, 2024 08:09 Inactive
@shoom3301 shoom3301 force-pushed the feat/manual-preview-build branch from 45460f3 to 6f03e34 Compare December 26, 2024 08:20
@shoom3301 shoom3301 force-pushed the feat/manual-preview-build branch from 6f03e34 to 9f3ef72 Compare December 26, 2024 08:21
@shoom3301 shoom3301 self-assigned this Dec 26, 2024
@shoom3301 shoom3301 requested a review from a team December 26, 2024 08:22
Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏆🏆🏆🏆🏆🏆🏆 🥇🥇🥇🥇🥇

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants