feat: set to use prefix when in ci
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
be2f9f8330
commit
e669434620
@ -41,6 +41,7 @@ steps:
|
|||||||
CUDDLE_SECRETS_PROVIDER: 1password
|
CUDDLE_SECRETS_PROVIDER: 1password
|
||||||
CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci"
|
CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci"
|
||||||
CUDDLE_SSH_AGENT: "true"
|
CUDDLE_SSH_AGENT: "true"
|
||||||
|
CUDDLE_CI: "true"
|
||||||
OP_SERVICE_ACCOUNT_TOKEN:
|
OP_SERVICE_ACCOUNT_TOKEN:
|
||||||
from_secret: op_service_account_token
|
from_secret: op_service_account_token
|
||||||
when:
|
when:
|
||||||
@ -69,6 +70,7 @@ steps:
|
|||||||
CUDDLE_SECRETS_PROVIDER: 1password
|
CUDDLE_SECRETS_PROVIDER: 1password
|
||||||
CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci"
|
CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci"
|
||||||
CUDDLE_SSH_AGENT: "true"
|
CUDDLE_SSH_AGENT: "true"
|
||||||
|
CUDDLE_CI: "true"
|
||||||
OP_SERVICE_ACCOUNT_TOKEN:
|
OP_SERVICE_ACCOUNT_TOKEN:
|
||||||
from_secret: op_service_account_token
|
from_secret: op_service_account_token
|
||||||
when:
|
when:
|
||||||
@ -97,6 +99,7 @@ steps:
|
|||||||
CUDDLE_SECRETS_PROVIDER: 1password
|
CUDDLE_SECRETS_PROVIDER: 1password
|
||||||
CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci"
|
CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci"
|
||||||
CUDDLE_SSH_AGENT: "true"
|
CUDDLE_SSH_AGENT: "true"
|
||||||
|
CUDDLE_CI: "true"
|
||||||
OP_SERVICE_ACCOUNT_TOKEN:
|
OP_SERVICE_ACCOUNT_TOKEN:
|
||||||
from_secret: op_service_account_token
|
from_secret: op_service_account_token
|
||||||
when:
|
when:
|
||||||
|
@ -2,7 +2,13 @@
|
|||||||
|
|
||||||
set -e
|
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" \
|
--mkdocs-image "$MKDOCS_IMAGE" \
|
||||||
--caddy-image "$CADDY_IMAGE" \
|
--caddy-image "$CADDY_IMAGE" \
|
||||||
--image "$REGISTRY/$SERVICE" \
|
--image "$REGISTRY/$SERVICE" \
|
||||||
|
Loading…
Reference in New Issue
Block a user