Re-order deployment steps

Ensure that the configuration import is run before the database updates,
so that any new fields are created that are needed within the update
steps such as `field_type` on the talk node type.
This commit is contained in:
Oliver Davies 2020-08-21 12:06:24 +01:00
parent 5f00b1cf04
commit 4e8c464dc8

View file

@ -16,6 +16,13 @@
chdir={{ release_web_path }}
changed_when: false
- name: Import configuration
command: >
{{ release_drush_path }} config-import -y
chdir={{ release_web_path }}
register: config_import_result
changed_when: "'There are no changes to import' not in config_import_result.stderr"
- name: Run database updates
command: >
{{ release_drush_path }}
@ -24,11 +31,4 @@
register: update_database_result
changed_when: "'No pending updates' not in update_database_result.stderr"
- name: Import configuration
command: >
{{ release_drush_path }} config-import -y
chdir={{ release_web_path }}
register: config_import_result
changed_when: "'There are no changes to import' not in config_import_result.stderr"
- include: ../includes/build-theme-assets.yml