infinite-industries / infinite

MIT License
5 stars 3 forks source link

Image version definition #384

Closed jswank closed 1 year ago

jswank commented 1 year ago

The docker-compose configuration relies on an environment variable, INFINITE_IMAGE_VERSION_TAG, to indicate which version of an image should be used for docker-compose. This variable will now be defined in a .env file used by docker-compose rather than /etc/environment.

Per discussion w/ Chris: overriding this tag can be a common activity. To support this more readily, the PR also adds the ability to pass arbitrary arguments to ansible-playbook when using just. For instance:

$ just deploy flags='-e image_version=master'  # use the master container in staging
# just deploy prod flags='-e image_version=development'  # use the dev container in production