[static-web] cat output, if there



commit a14dabeb6a5c2a87d096de385908daa697d89823
Author: Andrea Veri <averi redhat com>
Date:   Mon Jan 31 19:27:12 2022 +0100

    cat output, if there

 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fb22387..eded24e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,7 +10,7 @@ s3:
     LANG: "en_US.UTF-8"
     LANGUAGE: "en_US.UTF-8"
     LC_ALL: "en_US.UTF-8"
-    DEPLOY_CURL_COMMAND: 'curl --fail-with-body -X POST -H "Authorization: Bearer ${CDN_TOKEN}" 
https://api.cdn77.com/v3/cdn/$CDN_RESOURCE_ID/job/purge-all'
+    DEPLOY_CURL_COMMAND: 'curl --fail-with-body -o output -X POST -H "Authorization: Bearer ${CDN_TOKEN}" 
https://api.cdn77.com/v3/cdn/$CDN_RESOURCE_ID/job/purge-all'
   script:
     - yum install rsync -y
     - mkdir public
@@ -18,6 +18,7 @@ s3:
     - aws --version
     - aws s3 sync public s3://$S3_BUCKET --delete --size-only
     - 'eval "$DEPLOY_CURL_COMMAND"'
+    - cat output || true
   only:
     refs:
       - master


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