Skip to content

Commit

Permalink
#5 Only push Docker image for non-PR builds on master
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlwilson committed Nov 10, 2021
1 parent 6adf318 commit 76c8a7d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ jobs:
env:
JAVA_HOME: ${{ env.JAVA_HOME }}
with:
arguments: build jib
arguments: build jibDockerBuild
- name: Build & push docker image with Gradle
uses: gradle/gradle-build-action@v2
if: endsWith(github.ref, '/master')
env:
JAVA_HOME: ${{ env.JAVA_HOME }}
with:
arguments: jib
- name: Upload test results
if: always()
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 76c8a7d

Please sign in to comment.