Skip to content

Commit 8b130fc

Browse files
build native image only for main branch
1 parent a0911bf commit 8b130fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/kafka-sample-spring-modulith.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ jobs:
4040
native-image --version
4141
- name: Build with Maven
4242
run: ./mvnw -B verify --file pom.xml
43-
- name: Build native Image
43+
- if: ${{ github.ref == 'refs/heads/main' }}
44+
name: Build native Image
4445
run: ./mvnw -Pnative spring-boot:build-image -DskipTests

0 commit comments

Comments
 (0)