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 @@
- block:
- name: Set facts
- name: Set facts for updates
set_fact:
artefact_directories:
- src: '{{ webRoot }}/drush/drush.yml'
......@@ -25,6 +25,25 @@
dest: '{{ tempDeployRoot }}-old'
- src: '{{ tempDeployRoot }}'
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
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