Skip to content

Commit 708eaf4

Browse files
committed
ci: disable push if not upstream repo
Signed-off-by: CrazyMax <[email protected]> (cherry picked from commit 0e70765)
1 parent 2187cbd commit 708eaf4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/buildkit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ jobs:
8181
PUSH=push
8282
fi
8383
fi
84+
if [ "$GITHUB_REPOSITORY" != "moby/buildkit" ]; then
85+
PUSH=false
86+
fi
8487
echo "tag=${TAG}" >>${GITHUB_OUTPUT}
8588
echo "push=${PUSH}" >>${GITHUB_OUTPUT}
8689
platforms=$(docker buildx bake release --print | jq -cr '.target."release".platforms')

.github/workflows/frontend.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ jobs:
6161
PUSH=push
6262
fi
6363
fi
64+
if [ "$GITHUB_REPOSITORY" != "moby/buildkit" ]; then
65+
PUSH=false
66+
fi
6467
echo "typ=${TYP}" >>${GITHUB_OUTPUT}
6568
echo "push=${PUSH}" >>${GITHUB_OUTPUT}
6669
echo "tag=${TAG}" >>${GITHUB_OUTPUT}

0 commit comments

Comments
 (0)