You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
see here: the build on the PR branch marckoch-patch-1 did all three build stages, pushed its image to AWS ECR and triggered a redeploy on the AWS Beanstalk env. This i do not want! This should only happen after the merge of the patch branch to main branch.
So I want this:
build on main branch -> do all three stages and deploy to AWS
build on any other branch -> only do first stage (build and test), NO deployment to AWS
I assume I have to add something like if: github.ref == 'refs/heads/main' to the deployment steps that should only happen when main is build.
now the CI/CD pipeline also triggers a deploy when running in a branch. this should only occur in main branch.
The text was updated successfully, but these errors were encountered: