diff --git a/defaults/main.yml b/defaults/main.yml index 2a97c12..3f10cc7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -429,6 +429,9 @@ galaxy_uwsgi_config_default: # build separately, but this is not guaranteed to work for all version of Galaxy - using `make` is the safer choice. galaxy_client_make_target: client-production-maps +# Build the client even if it is not out of date +galaxy_client_force_build: false + # If galaxy_client_make_target is null, you can set this to `development` to build the client for development galaxy_client_node_env: production galaxy_client_build_steps: diff --git a/tasks/client.yml b/tasks/client.yml index 9677200..0b5ddd2 100644 --- a/tasks/client.yml +++ b/tasks/client.yml @@ -30,9 +30,9 @@ - name: Set client build version fact set_fact: - __galaxy_client_build_version: "{{ __galaxy_client_build_version_result.content | b64decode | trim }}" + __galaxy_client_build_version: "{{ galaxy_client_force_build | ternary('FORCE-BUILD', __galaxy_client_build_version_result.content | b64decode | trim) }}" - - name: Set client build version fact + - name: Set galaxy commit ID fact set_fact: __galaxy_current_commit_id: "{{ __galaxy_git_stat_result.after if __galaxy_from_git.stat.exists else 'none' }}" when: __galaxy_from_git.stat.exists