From 6705e714a95ee566f6f58205ed64854733a9e480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Tue, 2 Nov 2021 22:46:53 +0100 Subject: [PATCH] CI: Improve CI get_assets step Now it will actually display a failure on commits if minio cannot copy the assets. --- .build.yml | 4 ++-- get_assets.sh | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 get_assets.sh diff --git a/.build.yml b/.build.yml index 2d5ce9c..1611986 100644 --- a/.build.yml +++ b/.build.yml @@ -12,8 +12,8 @@ tasks: yarn install yarn lint - get_assets: | - cd 10man-web/public - s3cmd get --recursive s3://10man/img || complete-build + cd 10man-web + ./get_assets.sh - builds: | cd 10man-web yarn build diff --git a/get_assets.sh b/get_assets.sh new file mode 100755 index 0000000..1d9e428 --- /dev/null +++ b/get_assets.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ -f ~/.s3cfg ]; then + s3cmd get --recursive s3://10man/img public/ +else + complete-build +fi -- 2.44.0