diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 472df9b..952ea56 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -58,7 +58,7 @@ jobs: platforms: linux/arm64 cache-to: type=registry,ref=ghcr.io/cnstr/api-cache,compression=zstd cache-from: type=registry,ref=ghcr.io/cnstr/api-cache - args: | + build-args: | CANISTER_META_NAME=${{ steps.secrets.outputs.CANISTER_META_NAME }} CANISTER_META_DESC=${{ steps.secrets.outputs.CANISTER_META_DESC }} CANISTER_META_EMAIL=${{ steps.secrets.outputs.CANISTER_META_EMAIL }} diff --git a/Dockerfile b/Dockerfile index 6b1eb8b..f5a6cea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,11 +7,18 @@ ARG CANISTER_OPENAPI_ID ARG CANISTER_OPENAPI_TOKEN FROM rust:1.79 as builder -ENV UPLOAD_OPENAPI=true +ENV CANISTER_UPLOAD_OPENAPI=true WORKDIR /app ADD . . -RUN cargo build --release -p api +RUN CANISTER_META_NAME=${CANISTER_META_NAME} \ + CANISTER_META_DESC=${CANISTER_META_DESC} \ + CANISTER_META_EMAIL=${CANISTER_META_EMAIL} \ + CANISTER_META_COPYRIGHT=${CANISTER_META_COPYRIGHT} \ + CANISTER_API_ENDPOINT=${CANISTER_API_ENDPOINT} \ + CANISTER_OPENAPI_ID=${CANISTER_OPENAPI_ID} \ + CANISTER_OPENAPI_TOKEN=${CANISTER_OPENAPI_TOKEN} \ + cargo build --release -p api FROM gcr.io/distroless/cc-debian12 COPY --from=builder /app/target/release/api /