~xenrox/10man-web

6705e714a95ee566f6f58205ed64854733a9e480 — Thorben Günther 2 years ago 257adc2
CI: Improve CI get_assets step

Now it will actually display a failure on commits if minio cannot copy
the assets.
2 files changed, 9 insertions(+), 2 deletions(-)

M .build.yml
A get_assets.sh
M .build.yml => .build.yml +2 -2
@@ 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

A get_assets.sh => get_assets.sh +7 -0
@@ 0,0 1,7 @@
#!/bin/bash

if [ -f ~/.s3cfg ]; then
    s3cmd get --recursive s3://10man/img public/
else
    complete-build
fi