Skip to content

Commit 7c7c5d4

Browse files
committed
CI: add back ci-tooling
1 parent c7a4083 commit 7c7c5d4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Version 2023-03-03
1+
# Version 2023-03-05
22
name: Java CI
33
on: [push, pull_request]
44

@@ -36,9 +36,6 @@ jobs:
3636
with:
3737
java-version: ${{ matrix.java }}
3838
distribution: temurin
39-
server-id: igniterealtime
40-
server-username: CI_DEPLOY_USERNAME
41-
server-password: CI_DEPLOY_PASSWORD
4239

4340
- name: Cache Maven repository
4441
uses: actions/cache@v3
@@ -49,14 +46,18 @@ jobs:
4946
${{ runner.os }}-java${{ matrix.java }}-maven-
5047
${{ runner.os }}-
5148
49+
- name: Igniterealtime CI Tooling
50+
 run: |
51+
git clone --depth 1 https://github.com/igniterealtime/ci-tooling.git target/ci-tooling
52+
cp target/ci-tooling/maven-settings-for-openfire-plugins.xml $HOME/.m2/settings.xml
53+
5254
- name: Build with Maven
5355
run: mvn -B package
5456
5557
- name: Conditionally Deploy to Igniterealtime Archiva
5658
id: deploy
5759
if: ${{ contains(github.repository, 'igniterealtime/') && ( ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) || contains(github.ref, 'refs/tags/') ) && matrix.java == '8' }}
58-
run: |
59-
mvn -B deploy -Dmaven.resolver.transport=wagon
60+
run: mvn -B deploy -Dmaven.resolver.transport=wagon --settings target/ci-tooling/maven-settings-for-openfire-plugins.xml
6061
env:
6162
CI_DEPLOY_USERNAME: ${{ secrets.IGNITE_REALTIME_MAVEN_USERNAME }}
6263
CI_DEPLOY_PASSWORD: ${{ secrets.IGNITE_REALTIME_MAVEN_PASSWORD }}

0 commit comments

Comments
 (0)