Commit 1fadbec9 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Add option to archive-dump

Refs #89070
parent ae73c936
......@@ -144,13 +144,12 @@ def archive_dump(role='docker'):
with h.fab_cd(role, env.docker_site_root):
platform = '{}-{}.tar.gz'.format(env.project_name, datetime.now().strftime('%Y%m%d_%H%M%S'))
print(green('Cleaning previous archives'))
h.fab_run(role, 'rm -f {}/build/*.tar.gz'.format(env.docker_workspace))
print(green('Archiving the platform'))
h.fab_run(role, 'rm -f {}/*.tar.gz'.format(env.builddir))
print green('All tar.gz archives found in {} have been deleted.'.format(env.builddir))
h.fab_run(
role,
'drush archive-dump --destination={}/build/{} --tar-options="--exclude=.git"'.format(env.docker_workspace,
platform)
'drush archive-dump --destination={}/build/{} --tags="sflinux {}" --generatorversion="2.x" --generator="Drupalizer::fab drush.archive_dump" --tar-options="--exclude=.git"'.format(env.docker_workspace, platform, env.project_name)
)
@task
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment