From 2b77f7cfe3d02c034e8fdf766c69ca2b58a36abf Mon Sep 17 00:00:00 2001 From: Lucid Date: Sat, 6 Dec 2025 15:13:54 -0500 Subject: [PATCH] args --- .github/workflows/main.yml | 6 ++---- Dockerfile | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1574c85..bfe46ef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,8 +53,7 @@ jobs: context: . push: ${{ !github.event.pull_request.head.repo.fork }} tags: ${{ steps.meta.outputs.tags }} - build-args: | - API_URL=DATABASE_URL=${{ secrets.DATABASE_URL }} + build-args: API_URL=DATABASE_URL=${{ secrets.DATABASE_URL }} - name: Build and Push Latest Docker Image id: build-and-push-latest uses: docker/build-push-action@v4 @@ -63,5 +62,4 @@ jobs: context: . push: true tags: ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:latest - build-args: | - DATABASE_URL=${{ secrets.DATABASE_URL }} + build-args: DATABASE_URL=${{ secrets.DATABASE_URL }} diff --git a/Dockerfile b/Dockerfile index 8ab681c..cbaa928 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,3 @@ -ARG DATABASE_URL - # --- Stage 1: Dependencies --- FROM node:20-alpine AS dependencies RUN corepack enable @@ -10,6 +8,7 @@ RUN yarn install # --- Stage 2: Builder --- FROM node:20-alpine AS builder +ARG DATABASE_URL ENV DATABASE_URL=${DATABASE_URL} RUN corepack enable RUN corepack prepare yarn@stable --activate