Skip to content

Commit d08e00e

Browse files
Merge pull request #2131 from nextcloud/fix/tool/ci-forks
2 parents 0b110e6 + 547b947 commit d08e00e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/dart.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ jobs:
4949
packages_glob="${packages_glob:1}"
5050
if [ -n "$packages_glob" ]; then
5151
if [[ "$packages_glob" == *"nextcloud"* ]]; then
52+
if [[ "${{ github.event.pull_request.head.repo.full_name }}" == "${{ github.repository }}" ]]; then
53+
export PUSH_IMAGES="1"
54+
fi
5255
./tool/build-dev-container.sh
5356
fi
5457
MELOS_PACKAGES="$packages_glob" melos test

tool/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function cache_build_args() {
1515
"--cache-to" "type=inline,mode=max"
1616
"--cache-from" "type=registry,ref=$tag"
1717
)
18-
if [ -v GITHUB_REPOSITORY ]; then
18+
if [ -v PUSH_IMAGES ]; then
1919
build_args+=("--cache-to" "type=registry,ref=$tag,mode=max")
2020
fi
2121

0 commit comments

Comments
 (0)