mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-09-26 19:41:13 +08:00
chore: add support for GITHUB_TOKEN in static-builder-gnu
This commit is contained in:
@@ -160,8 +160,7 @@ COPY --link internal internal
|
||||
COPY --link package package
|
||||
|
||||
RUN --mount=type=secret,id=github-token \
|
||||
set -eux; \
|
||||
./build-static.sh && \
|
||||
GITHUB_TOKEN=$(cat /run/secrets/github-token) ./build-static.sh && \
|
||||
if [ -n "${BUILD_PACKAGES}" ]; then \
|
||||
./build-packages.sh; \
|
||||
fi; \
|
||||
|
@@ -99,5 +99,6 @@ ENV SPC_OPT_BUILD_ARGS='--with-config-file-path=/etc/frankenphp --with-config-fi
|
||||
ENV SPC_REL_TYPE='binary'
|
||||
ENV EXTENSION_DIR='/usr/lib/frankenphp/modules'
|
||||
|
||||
RUN --mount=type=secret,id=github-token GITHUB_TOKEN=$(cat /run/secrets/github-token) ./build-static.sh && \
|
||||
RUN --mount=type=secret,id=github-token \
|
||||
GITHUB_TOKEN=$(cat /run/secrets/github-token) ./build-static.sh && \
|
||||
rm -Rf dist/static-php-cli/source/*
|
||||
|
Reference in New Issue
Block a user