bitops icon indicating copy to clipboard operation
bitops copied to clipboard

Remove the need to specify ENVIRONMENT and deploy only based on git diff

Open mickmcgrath13 opened this issue 3 years ago • 2 comments

This issue (https://github.com/bitovi/bitops/issues/32) added the ability to only deploy an environment if $ENVIRONMENT matches changed files in the git diff.

@ConnorGraham brought up an advanced version of this:

Slightly different context, but this should be expanded to do more than selectively deploy Helm charts. It should also select the whole ops repo ENVIRONMENT, if not provided

Instead of providing the ENVIRONMENT env var on every BitOps run, it would be nice if there was an auto or git mode that would auto-detect what environment to run based on what has changed in the latest commit to the ops repo

mickmcgrath13 avatar Apr 28 '21 14:04 mickmcgrath13

this will require bitops to iterate over environments in the main deploy.sh script

mickmcgrath13 avatar Apr 28 '21 15:04 mickmcgrath13

this could also be expanded to include the tool subdirectories (i.e. <environment>/<tool> to only run tools if things in the subdirectories have changed.

mickmcgrath13 avatar Sep 22 '22 19:09 mickmcgrath13