Skip to content

Commit eb18e90

Browse files
Merge pull request #200 from xenit-eu/split-publish-ci
Split publish Ci of docker images to be on scheduled and maven images…
2 parents a332289 + 740b54c commit eb18e90

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ jobs:
6565
name: integration-test-${{ matrix.version }}-result
6666
path: /home/runner/work/**/build/reports
6767
retention-days: 2
68-
publish:
68+
publish-docker-images:
6969
needs: [ test, integration-test ]
7070
runs-on: ubuntu-latest
71-
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
71+
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/tags/v') }}
7272
steps:
7373
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
7474
- name: Set up JDK 17
@@ -94,6 +94,17 @@ jobs:
9494
with:
9595
cache-read-only: false
9696
arguments: :2repository:pushDockerImage -PincludeCommunity=false
97+
publish-maven-images:
98+
needs: [ test, integration-test ]
99+
runs-on: ubuntu-latest
100+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
101+
steps:
102+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
103+
- name: Set up JDK 17
104+
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
105+
with:
106+
distribution: 'temurin'
107+
java-version: '17'
97108
- name: Publish tomcat base jars
98109
env:
99110
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }}

0 commit comments

Comments
 (0)