Skip to content

Commit 60700f1

Browse files
committed
Switch to new launch-openfire action
1 parent 4febbd3 commit 60700f1

1 file changed

Lines changed: 10 additions & 41 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -18,53 +18,22 @@ jobs:
1818
sparse-checkout: |
1919
test
2020
21-
- name: Checkout Openfire actions e.g. 'startCIServer'
22-
uses: actions/checkout@v4
23-
with:
24-
repository: igniterealtime/Openfire
25-
path: openfire-ci
26-
sparse-checkout: |
27-
.github
28-
29-
- name: Download a recent Openfire daily build.
30-
run: |
31-
# This tries to find the most recent daily build, going back 30 days if none are available.
32-
#Note that the cache above will cause whatever build that's download to be considered 'todays' build.
33-
for i in $(seq 0 30); do
34-
STAMP=`date --date="$i day ago" +%F`;
35-
echo "Attempting to download Openfire build for $STAMP"
36-
curl --fail -L "https://download.igniterealtime.org/openfire/dailybuilds/openfire_$STAMP.tar.gz" -o openfire.tar.gz && break
37-
done
38-
39-
- name: Extract Openfire
40-
run: |
41-
tar -xzf openfire.tar.gz
42-
43-
- name: Set up yq
44-
uses: frenck/action-setup-yq@v1
45-
46-
- name: Copy in the extended demoboot config
47-
run: |
48-
rm openfire/conf/openfire.xml
49-
cp ./test/demoboot-with-additions.xml openfire/conf/openfire-demoboot.xml
50-
51-
- name: Start CI server from distribution
52-
id: startCIServer
53-
uses: ./openfire-ci/.github/actions/startserver-action
54-
with:
55-
distBaseDir: './openfire'
56-
domain: 'example.org'
57-
ip: '127.0.0.1'
58-
59-
- name: Download the built artifacts
21+
- name: Download the built plugin
6022
uses: actions/download-artifact@v4
6123
with:
6224
name: restAPI
6325
path: .
6426

65-
- name: Install plugin
27+
- name: Rename plugin
6628
run: |
67-
cp restAPI-openfire-plugin-assembly.jar openfire/plugins/restAPI.jar
29+
mv restAPI-openfire-plugin-assembly.jar restAPI.jar
30+
31+
- name: Run Openfire
32+
uses: igniterealtime/launch-openfire-action@v1.1.1
33+
with:
34+
version: 4.9.0
35+
config: ./test/demoboot-with-additions.xml
36+
plugin: ./restAPI.jar
6837

6938
- uses: gacts/install-hurl@v1
7039

0 commit comments

Comments
 (0)