Skip to content

Commit

Permalink
Push to official GHCR image on tagged builds as well as latest master
Browse files Browse the repository at this point in the history
Will keep the "build on every push" to dev images for mow
  • Loading branch information
chadlwilson committed Sep 15, 2022
1 parent 797972c commit 756bd8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ jobs:

- name: Gradle Local Docker Trial Build
uses: gradle/gradle-build-action@v2
if: ${{ !endsWith(github.ref, '/master') }}
if: ${{ !endsWith(github.ref, '/master') && !startsWith(github.ref, 'refs/tags/') }}
env:
JAVA_HOME: ${{ env.JAVA_HOME }}
with:
arguments: jibDockerBuild -x check

- name: Gradle Official Docker Build & Push
uses: gradle/gradle-build-action@v2
if: ${{ endsWith(github.ref, '/master') }}
if: ${{ endsWith(github.ref, '/master') || startsWith(github.ref, 'refs/tags/') }}
env:
JAVA_HOME: ${{ env.JAVA_HOME }}
with:
Expand Down

0 comments on commit 756bd8d

Please sign in to comment.