From 756bd8d5bc9a6efa0260e43abd6f9205cddb2b0f Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Thu, 15 Sep 2022 22:57:15 +0800 Subject: [PATCH] Push to official GHCR image on tagged builds as well as latest master Will keep the "build on every push" to dev images for mow --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 159e854b..30dbb9d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ 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: @@ -76,7 +76,7 @@ jobs: - 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: