cuddle-please/scripts/ci:main.sh
kjuulh e669434620
Some checks failed
continuous-integration/drone/push Build is failing
feat: set to use prefix when in ci
Signed-off-by: kjuulh <contact@kjuulh.io>
2023-08-03 23:39:26 +02:00

16 lines
304 B
Bash
Executable File

#!/usr/bin/env bash
set -e
CMD_PREFIX="cargo run -p ci --"
if [[ -n "$CUDDLE_CI" ]]; then
CMD_PREFIX="./target/debug/ci"
fi
$CMD_PREFIX main \
--mkdocs-image "$MKDOCS_IMAGE" \
--caddy-image "$CADDY_IMAGE" \
--image "$REGISTRY/$SERVICE" \
--tag "main-$(date +%s)" \
--bin-name "$SERVICE"