mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01: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