Skip to content

Commit

Permalink
Merge pull request #199 from galaxyproject/force-client-build
Browse files Browse the repository at this point in the history
Support forcing client builds even when the commit ID has not changed
  • Loading branch information
hexylena authored Dec 6, 2023
2 parents 06cbe3f + ff3ed7c commit e07b036
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions tasks/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e07b036

Please sign in to comment.