Skip to content

Commit 61f41f3

Browse files
committed
bypass "make docker-push" before merging PRs
Change-Id: I6d46c5a368d9fc00ec891dafac3cbba50752051b
1 parent 3a9479d commit 61f41f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/generate-manifest.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ jobs:
3636
[ "$VERSION" == "main" ] && VERSION=$(echo ${{ github.sha }} | cut -c1-8)
3737
echo IMAGE_ID=$IMAGE_ID
3838
echo VERSION=$VERSION
39-
make docker-build docker-push split-installer IMG=$IMAGE_ID:$VERSION
39+
if [[ "${{ github.repository_owner }}" == "${{ github.actor }}" && "${{ github.ref }}" == "refs/heads/main" ]]; then
40+
make docker-build docker-push split-installer IMG=$IMAGE_ID:$VERSION
41+
else
42+
make docker-build split-installer IMG=$IMAGE_ID:$VERSION
43+
fi
4044
mkdir -p manifests/controller
4145
cp dist/* manifests/controller/
4246
- name: Commit changes

0 commit comments

Comments
 (0)