Skip to content

Commit 2187cbd

Browse files
committed
hack: use git context only for upstream repo
Signed-off-by: CrazyMax <[email protected]> (cherry picked from commit 8d0b15f)
1 parent 3f86f92 commit 2187cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/util

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ currentref=""
5353
currentcontext="."
5454
cacheFromFlags=""
5555
cacheToFlags=""
56-
if [ "$GITHUB_ACTIONS" = "true" ]; then
56+
if [ "$GITHUB_ACTIONS" = "true" ] && [ "$GITHUB_REPOSITORY" = "moby/buildkit" ]; then
5757
currentref="https://github.com/$GITHUB_REPOSITORY.git#$GITHUB_REF"
5858
if [ -n "$CACHE_FROM" ]; then
5959
for cfrom in $CACHE_FROM; do

0 commit comments

Comments
 (0)