Skip to content

Commit

Permalink
never do this again: OKAY
Browse files Browse the repository at this point in the history
  • Loading branch information
truskovskiyk committed Dec 20, 2024
1 parent 3b5ab76 commit 0b1cf46
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
context: no-ocr-ui
push: true
tags: ghcr.io/kyryl-opens-ml/no-ocr-ui:latest
build-args: |
VITE_SUPABASE_URL=${{ secrets.VITE_SUPABASE_URL }}
VITE_SUPABASE_ANON_KEY=${{ secrets.VITE_SUPABASE_ANON_KEY }}
cache-from: type=registry,ref=ghcr.io/kyryl-opens-ml/no-ocr-ui:buildcache
cache-to: type=registry,ref=ghcr.io/kyryl-opens-ml/no-ocr-ui:buildcache,mode=max

Expand Down
2 changes: 0 additions & 2 deletions no-ocr-ui/.env

This file was deleted.

6 changes: 5 additions & 1 deletion no-ocr-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ RUN npm install
# Copy the rest of the application code
COPY . .

# Set build-time environment variables
ARG VITE_SUPABASE_URL
ARG VITE_SUPABASE_ANON_KEY

# Build the application
RUN npm run build
RUN VITE_SUPABASE_URL=$VITE_SUPABASE_URL VITE_SUPABASE_ANON_KEY=$VITE_SUPABASE_ANON_KEY npm run build

# Stage 2: Serve the application
FROM nginx:alpine
Expand Down

0 comments on commit 0b1cf46

Please sign in to comment.