Skip to content

Commit 26ce1ee

Browse files
committed
document trick
1 parent 7d6bd23 commit 26ce1ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

etc/docker/Dockerfile.sdk-build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ ARG REPO_SETUP=git
99

1010
ARG BASE_TAG
1111

12+
# See https://stackoverflow.com/a/54245466 for the trick used below
13+
# The two possible branches are repo_setup_git and repo_setup_copy, which are conditionally executed
14+
# using ARG REPO_SETUP
15+
1216
FROM ${BASE_TAG} AS repo_setup_git
1317
ARG GIT_TAG
1418
ONBUILD RUN echo "Checking if GIT_TAG is set" && test -n "${GIT_TAG}"

0 commit comments

Comments
 (0)