From ddfa76817db31184dd67c6a3ec19f42f61736ce0 Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Mon, 22 Jul 2024 15:21:38 -0400 Subject: [PATCH] fix: manually specify vault variables --- .github/workflows/deploy.yaml | 10 ++++++++-- Dockerfile | 8 ++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 790d3c2..472df9b 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -56,10 +56,16 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: linux/arm64 - secret-envs: ${{ steps.secrets.outputs }} cache-to: type=registry,ref=ghcr.io/cnstr/api-cache,compression=zstd cache-from: type=registry,ref=ghcr.io/cnstr/api-cache - + 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 }} + CANISTER_META_COPYRIGHT=${{ steps.secrets.outputs.CANISTER_META_COPYRIGHT }} + CANISTER_API_ENDPOINT=${{ steps.secrets.outputs.CANISTER_API_ENDPOINT }} + CANISTER_OPENAPI_ID=${{ steps.secrets.outputs.CANISTER_OPENAPI_ID }} + CANISTER_OPENAPI_TOKEN=${{ steps.secrets.outputs.CANISTER_OPENAPI_TOKEN }} deploy: name: Deploy runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index 4c8e4ff..6b1eb8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,11 @@ +ARG CANISTER_META_NAME +ARG CANISTER_META_DESC +ARG CANISTER_META_EMAIL +ARG CANISTER_META_COPYRIGHT +ARG CANISTER_API_ENDPOINT +ARG CANISTER_OPENAPI_ID +ARG CANISTER_OPENAPI_TOKEN + FROM rust:1.79 as builder ENV UPLOAD_OPENAPI=true WORKDIR /app