You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2020/01/14 22:16:17 UTC
[airavata] 03/03: AIRAVATA-3284 using regex to target just built
js/css files
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch AIRAVATA-3284--Ansible--clean-up-past-built-CSS/JS-files
in repository https://gitbox.apache.org/repos/asf/airavata.git
commit e9e25f4eff83b1e2978aa76ff57384f27316d9cd
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Jan 14 17:15:33 2020 -0500
AIRAVATA-3284 using regex to target just built js/css files
---
dev-tools/ansible/roles/django/tasks/main.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dev-tools/ansible/roles/django/tasks/main.yml b/dev-tools/ansible/roles/django/tasks/main.yml
index 5f5ba49..2c22bc3 100644
--- a/dev-tools/ansible/roles/django/tasks/main.yml
+++ b/dev-tools/ansible/roles/django/tasks/main.yml
@@ -52,7 +52,7 @@
mode: o+rx
run_once: true
-- name: git clone django repo
+- name: git clone {{ airavata_django_git_branch }} branch of {{ airavata_django_repo }}
local_action:
module: git
repo: "{{ airavata_django_repo }}"
@@ -179,11 +179,13 @@
become: yes
become_user: "{{user}}"
-- name: Find built JS/CSS files in /static directory accessed more than 30d ago
+- name: Find built JS/CSS files in /static directory last accessed more than 30d ago
find:
paths: "{{ doc_root_dir }}/static"
age: 30d
age_stamp: atime
+ patterns: ".*\\.[0-9a-f]{8}\\.js(\\.map)?,.*\\.[0-9a-f]{8}\\.css"
+ use_regex: yes
recurse: yes
register: static_files_to_delete
become: yes