From 8d26c861cc8eb53c79cfd5f8184de04754425975 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 4 Aug 2023 01:00:46 +0200 Subject: [PATCH] feat(ci): with ci:pr.sh file Signed-off-by: kjuulh --- scripts/ci:pr.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/ci:pr.sh diff --git a/scripts/ci:pr.sh b/scripts/ci:pr.sh new file mode 100755 index 0000000..d9ab5db --- /dev/null +++ b/scripts/ci:pr.sh @@ -0,0 +1,18 @@ + +#!/usr/bin/env bash + +set -e + +CMD_PREFIX="cargo run -p ci --" + +if [[ -n "$CI_PREFIX" ]]; then + CMD_PREFIX="$CI_PREFIX" +fi + + +$CMD_PREFIX pr \ + --mkdocs-image "$MKDOCS_IMAGE" \ + --caddy-image "$CADDY_IMAGE" \ + --image "$REGISTRY/$SERVICE" \ + --tag "main-$(date +%s)" \ + --bin-name "$SERVICE" \ No newline at end of file