I use Google Run to deploy my project. I have set it up so that google build is connected to my repository and then builds the project with the dockerfile. i have two branches a master branch and another one named X. I have selected branch X in google build, but whenever I push to master, it uses master for the build. How can I make sure that it only builds branch X when pushing to it.
Hi @ishakhagi,
Welcome to Google Cloud Community!
You want to configure Google Run to only build branch X when you push to it, even though you have another branch called master. Here's a summary of what I suggested:
There is no `Branch` field in the build config schema.
https://cloud.google.com/build/docs/build-config-file-schema
I also found the same as the OP that regardless of what branch I set as trigger the build system uses the master branch. It seems the Google Cloud services are in still stuck in the forever alpha/beta stage. Even to post this reply I had to post it twice because after login/authentication the post is lost.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |