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

How to avoid rebuilding images between staging and prod? #948

Open
lionello opened this issue Jan 10, 2025 · 0 comments
Open

How to avoid rebuilding images between staging and prod? #948

lionello opened this issue Jan 10, 2025 · 0 comments
Labels
question Further information is requested
Milestone

Comments

@lionello
Copy link
Member

lionello commented Jan 10, 2025

In Defang monorepo we deploy to staging, and if successful we deploy to prod, but the latter deployment does not rebuild any images. We do this to ensure we actually end up using the images that were tested in staging. If we'd rebuild all services, we might have new surprises and the prod could fail even though staging passed.

When using the Defang CLI, there's not obvious way to do this. Deploying twice, defang up --mode staging followed by defang up --mode production --project-name defang-prod would result in two builds. We could overwrite the staging by not specifying --project-name, but this is also not exactly what we'd want, since it replaces the staging deployment.

@lionello lionello added this to the Jan2025 milestone Jan 10, 2025
@lionello lionello added the question Further information is requested label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant