In Deploy Now, we've implemented the following mechanic:
If a dev opens a new branch in addition to main, we directly deploy it under a preview URL using the same build workflow that is also used in "main". The staging environment receives a generated preview URL incl. SSL. One the branch gets deleted/merged, we delete the staging environment. But if someones pushes to main, updates go live instantly.
Does this sound like a good workflow for you, or would you design it differently? @vjnvisakh & @joolsmcfly
Sounds pretty good to me except for small details.
We deploy feature branches we deem deployable/advanced enough (test suites are automatically run only if you push to a branch that has an open pull request).
If you're in the early stages of a new feature then it's not very useful to have a preview URL as it might be broken.
Our main branch is protected so you cannot push to it directly. You have to open a pull request first. That way we make sure tests are run and that someone reviews your changes.
We merge pull requests only if the matching pipeline (our test suite basically) is successful and if at least one person validates your PR.
In Deploy Now, we've implemented the following mechanic:
If a dev opens a new branch in addition to main, we directly deploy it under a preview URL using the same build workflow that is also used in "main". The staging environment receives a generated preview URL incl. SSL. One the branch gets deleted/merged, we delete the staging environment. But if someones pushes to main, updates go live instantly.
Does this sound like a good workflow for you, or would you design it differently? @vjnvisakh & @joolsmcfly
Sounds pretty good to me except for small details.
We deploy feature branches we deem deployable/advanced enough (test suites are automatically run only if you push to a branch that has an open pull request).
If you're in the early stages of a new feature then it's not very useful to have a preview URL as it might be broken.
Our main branch is protected so you cannot push to it directly. You have to open a pull request first. That way we make sure tests are run and that someone reviews your changes.
We merge pull requests only if the matching pipeline (our test suite basically) is successful and if at least one person validates your PR.
Hope this helps!
Helps, thanks a lot :)