Skip to content

Commit

Permalink
Allow setting MFE docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
snglth committed Feb 21, 2024
1 parent f7bae3a commit 11adc4c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@
- tutor_config
- tutor_deploy

- name: TUTOR | Update config with MFE image
ansible.builtin.command: "{{ tutor_venv_path }}/{{ tutor_exec_name }} config save --set MFE_DOCKER_IMAGE={{ tutor_mfe_image }}"
environment:
TUTOR_ROOT: "{{ tutor_config_path }}"
TUTOR_PLUGINS_ROOT: "{{ tutor_config_path }}/plugins"
TUTOR_APP: "{{ tutor_app }}"
become: true
become_user: "{{ tutor_user }}"
changed_when: false # It woulbe nice to detect change somehow
when: tutor_mfe_image is defined
tags:
- tutor_config
- tutor_deploy

- name: TUTOR | Update config with production settings
ansible.builtin.command: "{{ tutor_venv_path }}/{{ tutor_exec_name }} config save --set {{ item.key }}={{ item.value | to_yaml }}"
environment:
Expand Down

0 comments on commit 11adc4c

Please sign in to comment.