[static-web] Just output to stdout, also silent
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [static-web] Just output to stdout, also silent
- Date: Mon, 31 Jan 2022 19:29:11 +0000 (UTC)
commit 930bf25e3180324689f7c7ade645ae9d058c480b
Author: Andrea Veri <averi redhat com>
Date: Mon Jan 31 20:28:59 2022 +0100
Just output to stdout, also silent
.gitlab-ci.yml | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 670db10..ea7c3d1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,17 +17,9 @@ s3:
- aws --version
- aws s3 sync public s3://$S3_BUCKET --delete --size-only
- |
- curl --fail-with-body -o output -X POST \
+ curl --fail-with-body -s -o /dev/stdout -X POST \
-H "Authorization: Bearer ${CDN_TOKEN}" \
- "https://api.cdn77.com/v3/cdn/$CDN_RESOURCE_ID/job/purge-all" || true
- - |
- if "[ $? == 22 ]" ; then
- cat output
- exit 22
- else
- cat output
- exit 0
- fi
+ "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]