mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-07-17 12:10:34 +08:00
taskotron: enable gzipping artifacts on stg/prod
This commit is contained in:
@@ -196,10 +196,9 @@ factory.addStep(MasterShellCommand(command=["mkdir", '-m', '0755', Interpolate('
|
||||
factory.addStep(DirectoryUpload(slavesrc=Interpolate('/var/lib/taskotron/artifacts/%(prop:uuid)s/'),
|
||||
masterdest=Interpolate('{{ public_artifacts_dir }}/%(prop:uuid)s/task_output')))
|
||||
|
||||
{% if deployment_type in ['dev'] %}
|
||||
# gzip artifacts
|
||||
factory.addStep(MasterShellCommand(command=Interpolate('gzip {{ public_artifacts_dir }}/%(prop:uuid)s/task_output/*'),
|
||||
descriptionDone=['gzip artifacs dir content']))
|
||||
{% endif %}
|
||||
|
||||
{% if deployment_type in ['local'] %}
|
||||
# copy taskotron log to master
|
||||
|
||||
@@ -29,7 +29,6 @@ intype=application/x-gzip outtype=text/plain \
|
||||
cmd="/bin/gunzip -c -"
|
||||
|
||||
|
||||
{% if deployment_type == 'dev' %}
|
||||
<DirectoryMatch "^{{ public_artifacts_dir }}/all/(.+)/task_output/">
|
||||
RewriteEngine on
|
||||
|
||||
@@ -46,4 +45,3 @@ cmd="/bin/gunzip -c -"
|
||||
#SetOutputFilter INFLATE
|
||||
#ForceType text/plain
|
||||
</DirectoryMatch>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user