Move TEST_BUILD var to where we'll use it.

Allows for efficient caching.
pull/1672/head
Mathijs de Bruin 2025-05-19 12:53:12 +01:00
rodzic 4ddac39555
commit 7a3a70dc8f
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -3,7 +3,6 @@ FROM ubuntu:22.04 AS common
LABEL maintainer="Piero Toffanin <pt@masseranolabs.com>"
# Build-time variables
ARG TEST_BUILD
ARG DEBIAN_FRONTEND=noninteractive
ARG NODE_MAJOR=20
ARG PYTHON_VERSION=3.9
@ -86,6 +85,9 @@ EOT
# Copy remaining files
COPY . ./
# Defining this here allows for caching of previous layers.
ARG TEST_BUILD
RUN <<EOT
# Final build steps (in one roll to prevent too many layers).
# Setup cron