feat: set to use prefix when in ci
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-08-03 23:39:26 +02:00
parent be2f9f8330
commit e669434620
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
2 changed files with 10 additions and 1 deletions

View File

@ -41,6 +41,7 @@ steps:
CUDDLE_SECRETS_PROVIDER: 1password
CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci"
CUDDLE_SSH_AGENT: "true"
CUDDLE_CI: "true"
OP_SERVICE_ACCOUNT_TOKEN:
from_secret: op_service_account_token
when:
@ -69,6 +70,7 @@ steps:
CUDDLE_SECRETS_PROVIDER: 1password
CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci"
CUDDLE_SSH_AGENT: "true"
CUDDLE_CI: "true"
OP_SERVICE_ACCOUNT_TOKEN:
from_secret: op_service_account_token
when:
@ -97,6 +99,7 @@ steps:
CUDDLE_SECRETS_PROVIDER: 1password
CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci"
CUDDLE_SSH_AGENT: "true"
CUDDLE_CI: "true"
OP_SERVICE_ACCOUNT_TOKEN:
from_secret: op_service_account_token
when:

View File

@ -2,7 +2,13 @@
set -e
cargo run -p ci -- main \
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" \