Skip to content

Commit 350ca85

Browse files
committed
pass them through?
1 parent df46801 commit 350ca85

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

docker-bake.hcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ target "static-builder-musl" {
141141
}
142142
args = {
143143
FRANKENPHP_VERSION = VERSION
144+
# pass CI flags from the environment so Dockerfiles can propagate them
145+
CI = CI
146+
GITHUB_ACTIONS = GITHUB_ACTIONS
144147
}
145148
secret = ["id=github-token,env=GITHUB_TOKEN"]
146149
}
@@ -165,6 +168,9 @@ target "static-builder-gnu" {
165168
args = {
166169
FRANKENPHP_VERSION = VERSION
167170
GO_VERSION = GO_VERSION
171+
# pass CI flags from the environment so Dockerfiles can propagate them
172+
CI = CI
173+
GITHUB_ACTIONS = GITHUB_ACTIONS
168174
}
169175
secret = ["id=github-token,env=GITHUB_TOKEN"]
170176
}

static-builder-gnu.Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ ENV GOTOOLCHAIN=local
2929

3030
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
3131

32+
# Pass through CI environment flags so build-static.sh can detect CI context
33+
ARG CI
34+
ARG GITHUB_ACTIONS
35+
ENV CI=${CI}
36+
ENV GITHUB_ACTIONS=${GITHUB_ACTIONS}
37+
3238
# labels, same as static-builder.Dockerfile
3339
LABEL org.opencontainers.image.title=FrankenPHP
3440
LABEL org.opencontainers.image.description="The modern PHP app server"

static-builder-musl.Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ ENV GOTOOLCHAIN=local
2525

2626
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
2727

28+
# Pass through CI environment flags so build-static.sh can detect CI context
29+
ARG CI
30+
ARG GITHUB_ACTIONS
31+
ENV CI=${CI}
32+
ENV GITHUB_ACTIONS=${GITHUB_ACTIONS}
33+
2834
LABEL org.opencontainers.image.title=FrankenPHP
2935
LABEL org.opencontainers.image.description="The modern PHP app server"
3036
LABEL org.opencontainers.image.url=https://frankenphp.dev

0 commit comments

Comments
 (0)