forked from Mirrors/Dispatcharr
Properly pass build arguments.
This commit is contained in:
parent
daa40033fc
commit
60a8bed65a
2 changed files with 6 additions and 5 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -102,6 +102,7 @@ jobs:
|
|||
build-args: |
|
||||
REPO_OWNER=${{ steps.meta.outputs.repo_owner }}
|
||||
REPO_NAME=${{ steps.meta.outputs.repo_name }}
|
||||
BASE_TAG=base
|
||||
BRANCH=${{ github.ref_name }}
|
||||
REPO_URL=https://github.com/${{ github.repository }}
|
||||
TIMESTAMP=${{ steps.timestamp.outputs.timestamp }}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
# Define base image build arguments (must be before any FROM)
|
||||
ARG REPO_OWNER=dispatcharr
|
||||
ARG REPO_NAME=dispatcharr
|
||||
ARG BASE_TAG=base
|
||||
|
||||
# --- Build frontend ---
|
||||
FROM node:20 AS frontend-builder
|
||||
WORKDIR /app/frontend
|
||||
|
|
@ -11,6 +6,11 @@ RUN corepack enable && corepack prepare yarn@stable --activate && \
|
|||
yarn install && yarn build && \
|
||||
rm -rf node_modules .cache
|
||||
|
||||
# --- Redeclare build arguments for the next stage ---
|
||||
ARG REPO_OWNER
|
||||
ARG REPO_NAME
|
||||
ARG BASE_TAG
|
||||
|
||||
# --- Final image based on the dynamic base ---
|
||||
FROM ghcr.io/${REPO_OWNER}/${REPO_NAME}:${BASE_TAG} AS final
|
||||
ENV VIRTUAL_ENV=/dispatcharrpy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue