StackStorm / st2-packages

StackStorm deb/rpm packages (automated docker build pipeline)
https://stackstorm.com/
27 stars 59 forks source link

[INFO] How Branching works for Packages #230

Open arm4b opened 8 years ago

arm4b commented 8 years ago

st2-packages repo now follows st2 branching strategy. What it means.

The Logic:

Normally pushing to v1.3 branch for any st2 or st2-packages repos will generate and deploy v1.3 staging packages. Usually that's enough, but if you want to do that manually without pushing changes, just use CircleCI rebuild:

arm4b commented 8 years ago

^^ @enykeev @dennybaa @lakshmi-kannan please review the logic and provide your ideas if you have.

That'll be better automated after merging: https://github.com/StackStorm/st2-packages/pull/227 https://github.com/StackStorm/st2-packages/pull/229 https://github.com/StackStorm/st2/pull/2569 https://github.com/StackStorm/st2/pull/2570

enykeev commented 8 years ago

opening PR against any other branch of st2-packages repo will use st2 master code (fallback)

Not really. As of https://github.com/StackStorm/st2-packages/commit/86a4a43dec0db8d8815ab1cfdd226dab26bdb6dc, it depends on the point you're branching from. Any commit that branches after 86a4a43dec0db8d8815ab1cfdd226dab26bdb6dc will use 1.3 branch of st2.

arm4b commented 8 years ago

@enykeev see: https://github.com/StackStorm/st2-packages/pull/227 PR.

arm4b commented 8 years ago

As discussed with @enykeev, closing #227 branch autodetection as error-prone way. ST2_GITREV hardcoding in each branch of st2-packages will work.

I guess we'll end up with hardcoding in st2 repo as well later, once we enable PR statuses there, if Circle won't add builds on Opened PRs