From 6bb8582cb53bbbc97fd11398a74e297297b50ff6 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Fri, 11 Mar 2022 10:52:59 +0100 Subject: [PATCH] CI: Improve deployment scripts #2076 --- scripts/deploy-preview.sh | 10 ++++++++-- scripts/deploy-release.sh | 8 ++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/scripts/deploy-preview.sh b/scripts/deploy-preview.sh index 7aa0f00f9..c7cc530cd 100755 --- a/scripts/deploy-preview.sh +++ b/scripts/deploy-preview.sh @@ -1,13 +1,19 @@ #!/usr/bin/env bash +# exit on error set -e -# Run tests +# install QEMU for multi-arch builds +scripts/install-qemu.sh + +# run tests scripts/test.sh -# Build images +# build preview image make docker-preview +# wait 2s sleep 2 +# build demo image make docker-demo diff --git a/scripts/deploy-release.sh b/scripts/deploy-release.sh index f3e3309e3..a2d1c93b5 100755 --- a/scripts/deploy-release.sh +++ b/scripts/deploy-release.sh @@ -1,9 +1,13 @@ #!/usr/bin/env bash +# exit on error set -e -# Run tests +# install QEMU for multi-arch builds +scripts/install-qemu.sh + +# run tests scripts/test.sh -# Build images +# build release images make docker-release