bitops
bitops copied to clipboard
Remove the need to specify ENVIRONMENT and deploy only based on git diff
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
this will require bitops to iterate over environments in the main deploy.sh
script
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.