chore: rename variable
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-04 00:08:16 +02:00
parent ab1fc6d9c0
commit 20f2392b4a
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
2 changed files with 7 additions and 8 deletions

View File

@ -7,7 +7,7 @@ steps:
image: rustlang/rust:nightly image: rustlang/rust:nightly
volumes: volumes:
- name: ci - name: ci
path: /drone/src/target/debug path: /mnt/ci
environment: environment:
PKG_CONFIG_SYSROOT_DIR: "/" PKG_CONFIG_SYSROOT_DIR: "/"
commands: commands:
@ -16,6 +16,8 @@ steps:
- apt install musl-tools pkg-config libssl-dev openssl build-essential musl-dev -y - apt install musl-tools pkg-config libssl-dev openssl build-essential musl-dev -y
- rustup target add x86_64-unknown-linux-musl - rustup target add x86_64-unknown-linux-musl
- cargo build --target=x86_64-unknown-linux-musl -p ci - cargo build --target=x86_64-unknown-linux-musl -p ci
- mkdir -
- mv target/x86_64-unknown-linux-musl/debug/ci "$CI_PREFIX/ci"
- name: load_secret - name: load_secret
image: debian:buster-slim image: debian:buster-slim
@ -68,7 +70,7 @@ steps:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
- name: ci - name: ci
path: /drone/src/target/debug path: /mnt/ci
commands: commands:
- eval `ssh-agent` - eval `ssh-agent`
- chmod -R 600 ~/.ssh - chmod -R 600 ~/.ssh
@ -79,7 +81,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" CI_PREFIX: "/mnt/ci/ci"
CUDDLE_PLEASE_TOKEN: CUDDLE_PLEASE_TOKEN:
from_secret: cuddle_please_token from_secret: cuddle_please_token
OP_SERVICE_ACCOUNT_TOKEN: OP_SERVICE_ACCOUNT_TOKEN:

View File

@ -4,13 +4,10 @@ set -e
CMD_PREFIX="cargo run -p ci --" CMD_PREFIX="cargo run -p ci --"
if [[ -n "$CUDDLE_CI" ]]; then if [[ -n "$CI_PREFIX" ]]; then
CMD_PREFIX="./target/debug/ci" CMD_PREFIX="$CI_PREFIX"
fi fi
echo "$PWD"
ls target/debug
$CMD_PREFIX main \ $CMD_PREFIX main \
--mkdocs-image "$MKDOCS_IMAGE" \ --mkdocs-image "$MKDOCS_IMAGE" \