Skip to content

Commit

Permalink
fix: manually specify vault variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tale committed Jul 22, 2024
1 parent 0118d4b commit ddfa768
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ddfa768

Please sign in to comment.