From de1fdc06913f931f7561f640a14f6a636dd9f27a Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 19 Oct 2021 19:55:42 -0600 Subject: [PATCH] CI --- build/ci/ci.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build/ci/ci.sh b/build/ci/ci.sh index 1d1707c..de2692a 100755 --- a/build/ci/ci.sh +++ b/build/ci/ci.sh @@ -17,6 +17,11 @@ fail () { exit 1 } +run () { + printf "\033[32m%\033[0m $*\n" 1>&2 + "$@" +} + tags () { pfx=$1 for base in ghcr.io/dirtbags/moth dirtbags/moth; do @@ -28,11 +33,11 @@ tags () { case $ACTION in publish) - docker build \ + run docker build \ --file build/package/Containerfile \ $(tags) \ . - docker push $(tags --destination) + run docker push $(tags --destination) ;; *) echo "Unknown action: $1" 1>&2