Skip to content

Commit 13aa361

Browse files
committed
ci: build with firebase config
1 parent f35f82d commit 13aa361

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build-image.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
labels: ${{ steps.meta.outputs.labels }}
5656
cache-from: type=gha
5757
cache-to: type=gha,mode=max
58+
build-args: |
59+
VITE_FIREBASE_CONFIG=${{ secrets.VITE_FIREBASE_CONFIG }}
60+
VITE_FIREBASE_VAPID_KEY=${{ secrets.VITE_FIREBASE_VAPID_KEY }}
5861
5962
- name: Generate artifact attestation
6063
uses: actions/attest-build-provenance@v3

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ FROM base AS builder
1414
WORKDIR /app
1515
COPY --from=deps /app/node_modules ./node_modules
1616
COPY . .
17+
18+
ARG VITE_FIREBASE_CONFIG
19+
ARG VITE_FIREBASE_VAPID_KEY
20+
ENV VITE_FIREBASE_CONFIG=$VITE_FIREBASE_CONFIG
21+
ENV VITE_FIREBASE_VAPID_KEY=$VITE_FIREBASE_VAPID_KEY
22+
1723
RUN pnpm run build
1824

1925
FROM nginx:alpine AS runner

0 commit comments

Comments
 (0)