args
Some checks failed
Main / build-and-push-docker-image (20.x) (push) Failing after 4m22s

This commit is contained in:
2025-12-06 15:13:54 -05:00
parent 45cc9627c5
commit 2b77f7cfe3
2 changed files with 3 additions and 6 deletions

View File

@@ -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 }}

View File

@@ -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