[static-web] Drop eval and use yaml multiline
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [static-web] Drop eval and use yaml multiline
- Date: Mon, 31 Jan 2022 18:47:35 +0000 (UTC)
commit 4c6749d727ef0a8b52b1f120a414f1f331c0dc57
Author: Andrea Veri <averi redhat com>
Date: Mon Jan 31 19:47:11 2022 +0100
Drop eval and use yaml multiline
.gitlab-ci.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8068ae1..cbf8795 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,14 +10,16 @@ s3:
LANG: "en_US.UTF-8"
LANGUAGE: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
- 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
- rsync -avz --exclude=".*" --exclude=*.doap $CI_PROJECT_DIR/* public/
- aws --version
- aws s3 sync public s3://$S3_BUCKET --delete --size-only
- - eval "$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"
- cat output || true
only:
refs:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]