[static-web] Tweak the API call for purge-all



commit 7a276825184048707f7652cdec989bc7508f5723
Author: Andrea Veri <averi redhat com>
Date:   Mon Jan 31 19:12:23 2022 +0100

    Tweak the API call for purge-all

 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 08835cb..c87ff7d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,7 @@ s3:
     - rsync -avz --exclude=".*" --exclude=*.doap $CI_PROJECT_DIR/* public/
     - aws --version
     - aws s3 sync public s3://$S3_BUCKET --delete --size-only
-    - curl --data "cdn_id=${CDN_RESOURCE_ID}&login=${CDN_USER}&passwd=${CDN_TOKEN}" 
https://api.cdn77.com/v2.0/data/purge-all
+    - curl --fail-with-body -X POST -H "Authorization: Bearer ${CDN_TOKEN}" 
https://api.cdn77.com/v3/cdn/$CDN_RESOURCE_ID/job/purge-all
   only:
     refs:
       - master


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