I see that you have each app in a different repo. If you have Deploy on Push enabled and you make a commit to your repo, it will create a new deployment to deploy the changes. Generally speaking, whenever a deployment is created, it cancels any in progress ones and starts building.
But, all deployments will deploy all components and not just the one that triggered it via commit. So, the second deployment will pick up the changes/commit from the canceled deployment. This is also the case when you manually click the Deploy button.
Though I realize that the deployment descriptions (
commit <hash> pushed to <repo>) can be a bit confusing as they only list one commit. So you can definitely just push to both repos and all changes will be automatically deployed.
For example, if you have repos
- You push commit to
- App Platform refreshes the latest commit and creates a new deployment
- You push a commit to
- App Platform refreshes the latest commit and creates a new deployment. The first deployment is canceled and this one starts. However it will both new commits on both repos, and not just the one that was just pushed to
You can confirm by looking at the build logs for the second deployment. In the first few lines you will see the commit hashes that are used. I hope this clears things up!