route runner build container clones via public URL with CF Access (#7)
This commit is contained in:
@@ -85,3 +85,15 @@ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends gh \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Cloudflare Access bootstrap for git clones to git.neuralplatform.ai.
|
||||
# This script is sourced by bash in build containers via BASH_ENV (set by
|
||||
# act_runner's container.env in deployment.yaml) so it runs before every
|
||||
# step. It configures git insteadOf + CF Access extraHeaders from
|
||||
# CF_ACCESS_CLIENT_ID / CF_ACCESS_CLIENT_SECRET env vars.
|
||||
#
|
||||
# We deliberately don't set ENTRYPOINT / CMD here — act_runner spawns
|
||||
# build containers with its own entrypoint to keep them alive between
|
||||
# steps, and overriding it breaks job execution.
|
||||
COPY git-cf-access-init.sh /usr/local/bin/git-cf-access-init.sh
|
||||
RUN chmod +x /usr/local/bin/git-cf-access-init.sh
|
||||
|
||||
Reference in New Issue
Block a user