Skip to content

Commit

Permalink
Split publish Ci of docker images to be on scheduled and maven images…
Browse files Browse the repository at this point in the history
… on tags only
  • Loading branch information
hechmi-dammak-xenit committed Dec 4, 2023
1 parent a332289 commit 740b54c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ jobs:
name: integration-test-${{ matrix.version }}-result
path: /home/runner/work/**/build/reports
retention-days: 2
publish:
publish-docker-images:
needs: [ test, integration-test ]
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/tags/v') }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Set up JDK 17
Expand All @@ -94,6 +94,17 @@ jobs:
with:
cache-read-only: false
arguments: :2repository:pushDockerImage -PincludeCommunity=false
publish-maven-images:
needs: [ test, integration-test ]
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Set up JDK 17
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
with:
distribution: 'temurin'
java-version: '17'
- name: Publish tomcat base jars
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }}
Expand Down

0 comments on commit 740b54c

Please sign in to comment.