-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove matrix and set condition in Dockerfile
- Loading branch information
Showing
4 changed files
with
23 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,18 @@ RUN yarn add --ignore-engines [email protected] | |
|
||
COPY . . | ||
|
||
# build time only env var | ||
ARG ARG_SITE_URL | ||
ENV SITE_URL=$ARG_SITE_URL | ||
RUN echo "SITE_URL=$SITE_URL" | ||
ARG ARG_SITE_URL_ARM64 | ||
ARG ARG_SITE_URL_AMD64 | ||
|
||
# Set SITE_URL based on the target architecture | ||
# Docker provides TARGETARCH for this purpose | ||
ARG TARGETARCH | ||
RUN if [ "$TARGETARCH" = "arm64" ]; then \ | ||
export SITE_URL=$ARG_SITE_URL_ARM64; \ | ||
else \ | ||
export SITE_URL=$ARG_SITE_URL_AMD64; \ | ||
fi && \ | ||
echo "SITE_URL=$SITE_URL" | ||
|
||
ARG ARG_PLAUSIBLE_SCRIPT_URL | ||
ENV PLAUSIBLE_SCRIPT_URL=$ARG_PLAUSIBLE_SCRIPT_URL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters