Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support forcing client builds even when the commit ID has not changed #199

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading