[static-web] Also delete files which are not effectively there anymore on local copy



commit 88f09426120ea910307e38bf56c45f51fcf041d5
Author: Andrea Veri <averi redhat com>
Date:   Mon Jan 31 18:27:44 2022 +0100

    Also delete files which are not effectively there anymore on local copy

 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8aedb8d..999bd3b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,8 +11,8 @@ s3:
     - mkdir public
     - rsync -avz --exclude=".*" --exclude=*.doap $CI_PROJECT_DIR/* public/
     - aws --version
-    - aws s3 sync public s3://$S3_BUCKET
-    #- curl --data "cdn_id=${CDN_RESOURCE_ID}&login=${CDN_USER}&passwd=${CDN_TOKEN}" 
https://api.cdn77.com/v2.0/data/purge-all
+    - aws s3 sync public s3://$S3_BUCKET --delete
+    - curl --data "cdn_id=${CDN_RESOURCE_ID}&login=${CDN_USER}&passwd=${CDN_TOKEN}" 
https://api.cdn77.com/v2.0/data/purge-all
   only:
     refs:
       - master


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]