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

fix(config-utils): Also check env for BETA to choose deployment #1933

Merged

Conversation

bastilian
Copy link
Member

@bastilian bastilian commented Nov 3, 2023

This adds another check that will help prevent apps failing to deploy containers properly for preview environments, since we now set wether or not it is preview via the env variable and not the branch names.

@@ -61,7 +61,8 @@ const createFecConfig = (
fecLogger(LogType.info, 'no git branch detected, using main for webpack "main" config.');
gitBranch = 'main';
}
const appDeployment = configurations.deployment || (isProd && betaBranches.includes(gitBranch) ? 'beta/apps' : 'apps');
const appDeployment =
configurations.deployment || ((isProd && betaBranches.includes(gitBranch)) || process.env.BETA === 'true' ? 'beta/apps' : 'apps');
Copy link
Contributor

Choose a reason for hiding this comment

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

@bastilian nice catch. This condition needs a little bit of love in general.

Can you add a check for the configurations.deployment as well? Just to make sure we don't run into any edge cases.

const appDeployment = typeof configurations.deployment === 'string' ? configurations.deployment : ... 

Copy link
Member Author

Choose a reason for hiding this comment

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

@Hyperkid123 Added!

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you

@Hyperkid123 Hyperkid123 added bug Something isn't working release Once merged it will trigger bugfix release labels Nov 27, 2023
@bastilian bastilian force-pushed the fed_mods_proxy_improvements branch from eac5903 to 888ca49 Compare November 27, 2023 14:55
@Hyperkid123 Hyperkid123 merged commit 5dfddf8 into RedHatInsights:master Nov 28, 2023
1 check passed
@nacho-bot
Copy link
Collaborator

                      :soon::shipit::octocat:
     :bug:Shipit Squirrel has this release bugfix surrounded, be ready for a new version:beetle:

@nacho-bot
Copy link
Collaborator

     🌱 🌸 🌷 🌻 🌟 New version of package has been released 🌟 🌻 🌷 🌸 🌱

                The release is available on:

        :package:@redhat-cloud-services/frontend-components-config/v/6.0.6📦

             :boom:This feature is brought to you by probot🚀

@nacho-bot nacho-bot added the released Pr has been released label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release Once merged it will trigger bugfix release released Pr has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants