Closed bohendo closed 5 years ago
If we forget to increment the version in package.json & deploy, we clobber our old images and make it harder to roll-back if something goes wrong.
Before pushing versioned images, check whether this version already exists on docker hub. If so, abort.
Something similar is already done in indra/ops/pre-push.sh, just gotta repackage that & activate it pre-image-push too.
indra/ops/pre-push.sh
closing, should be handled by existing deploy scripts 🎉
Current Behavior
If we forget to increment the version in package.json & deploy, we clobber our old images and make it harder to roll-back if something goes wrong.
Possible Solution
Before pushing versioned images, check whether this version already exists on docker hub. If so, abort.
Something similar is already done in
indra/ops/pre-push.sh
, just gotta repackage that & activate it pre-image-push too.