Skip to content

Commit

Permalink
Switch to new launch-openfire action
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishbowler committed Oct 15, 2024
1 parent 4febbd3 commit 60700f1
Showing 1 changed file with 10 additions and 41 deletions.
51 changes: 10 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,53 +18,22 @@ jobs:
sparse-checkout: |
test
- name: Checkout Openfire actions e.g. 'startCIServer'
uses: actions/checkout@v4
with:
repository: igniterealtime/Openfire
path: openfire-ci
sparse-checkout: |
.github
- name: Download a recent Openfire daily build.
run: |
# This tries to find the most recent daily build, going back 30 days if none are available.
#Note that the cache above will cause whatever build that's download to be considered 'todays' build.
for i in $(seq 0 30); do
STAMP=`date --date="$i day ago" +%F`;
echo "Attempting to download Openfire build for $STAMP"
curl --fail -L "https://download.igniterealtime.org/openfire/dailybuilds/openfire_$STAMP.tar.gz" -o openfire.tar.gz && break
done
- name: Extract Openfire
run: |
tar -xzf openfire.tar.gz
- name: Set up yq
uses: frenck/action-setup-yq@v1

- name: Copy in the extended demoboot config
run: |
rm openfire/conf/openfire.xml
cp ./test/demoboot-with-additions.xml openfire/conf/openfire-demoboot.xml
- name: Start CI server from distribution
id: startCIServer
uses: ./openfire-ci/.github/actions/startserver-action
with:
distBaseDir: './openfire'
domain: 'example.org'
ip: '127.0.0.1'

- name: Download the built artifacts
- name: Download the built plugin
uses: actions/download-artifact@v4
with:
name: restAPI
path: .

- name: Install plugin
- name: Rename plugin
run: |
cp restAPI-openfire-plugin-assembly.jar openfire/plugins/restAPI.jar
mv restAPI-openfire-plugin-assembly.jar restAPI.jar
- name: Run Openfire
uses: igniterealtime/[email protected]
with:
version: 4.9.0
config: ./test/demoboot-with-additions.xml
plugin: ./restAPI.jar

- uses: gacts/install-hurl@v1

Expand Down

0 comments on commit 60700f1

Please sign in to comment.