HOWTO: do an emergency deploy - GeoSmartCity-CIP/gsc-geoadmin GitHub Wiki

An emergency deploy can be done at any time, regardless of what happened or happens in master.

  • Make sure your repo is up to date: git fetch all
  • Find out either the tag (from https://github.com/geoadmin/mf-geoadmin3/releases) or a commit hash on which you want to base your emergency deploy. We name it r_base
  • Check it out: git checkout r_base
  • Create new release branch: git checkout -b r_release_branch (If r_base is already a branch, instead of a tag, then you don't need this step)
  • Apply any code changes that you want (maybe using git cherry-pick or manual means)
  • Commit the changes: git add . && git commmit -m "blabla"
  • Push your branch: git push origin r_release_branch
  • Now git is read. Use the deploy scripts https://github.com/geoadmin/deploy
  • IMPORTANT adapt the branch in these scripts by replacing master with r_release_branch.
  • Run the script, integration first, test, production later, test.

That's it.