Skip to content
Snippets Groups Projects
Commit ea4be358 authored by jurgenhaas's avatar jurgenhaas
Browse files

gitlab-ci-cd/drupal#2 Add support for first installation in artefact mode

parent 5b4840d5
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- block: - block:
- name: Set facts - name: Set facts for updates
set_fact: set_fact:
artefact_directories: artefact_directories:
- src: '{{ webRoot }}/drush/drush.yml' - src: '{{ webRoot }}/drush/drush.yml'
...@@ -25,6 +25,25 @@ ...@@ -25,6 +25,25 @@
dest: '{{ tempDeployRoot }}-old' dest: '{{ tempDeployRoot }}-old'
- src: '{{ tempDeployRoot }}' - src: '{{ tempDeployRoot }}'
dest: '{{ webRoot }}' dest: '{{ webRoot }}'
when: not drupal_first_installation
- name: Set facts first installation
set_fact:
artefact_directories:
- src: '{{ webRoot }}/files'
dest: '{{ tempDeployRoot }}/files'
reset: true
- src: '{{ webRoot }}/settings'
dest: '{{ tempDeployRoot }}/settings'
reset: true
- src: '{{ webRoot }}/web/sites/default'
dest: '{{ tempDeployRoot }}/web/sites/default'
reset: true
- src: '{{ webRoot }}'
dest: '{{ tempDeployRoot }}-old'
- src: '{{ tempDeployRoot }}'
dest: '{{ webRoot }}'
when: drupal_first_installation
- name: Reset destination directories - name: Reset destination directories
file: file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment