-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from ant-media/Add_Ubuntu_24.04
Add Ubuntu 24.04 support
- Loading branch information
Showing
3 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Install Latest Snapshot to Ubuntu 24.04 | ||
#on: [push] | ||
|
||
jobs: | ||
Install-Ubuntu-24-04: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | ||
|
||
- run: wget -O maven-metadata.xml https://oss.sonatype.org/service/local/repositories/snapshots/content/io/antmedia/ant-media-server/maven-metadata.xml | ||
#Get latest snapshot | ||
- run: | | ||
export LATEST_SNAPSHOT=$(cat maven-metadata.xml | grep "<version>" | tail -n 1 | xargs | cut -c 10-23) | ||
echo $LATEST_SNAPSHOT | ||
wget -O ant-media-server-community.zip "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=io.antmedia&a=ant-media-server&v=${LATEST_SNAPSHOT}&c=community&e=zip"; | ||
- run: ./install_ant-media-server.sh -i ant-media-server-community.zip | ||
- run: sudo service antmedia status | ||
- run: sleep 30 | ||
- run: cat /usr/local/antmedia/log/ant-media-server.log | ||
- run: | | ||
if [ $(cat /usr/local/antmedia/log/ant-media-server.log | grep "LiveApp started" | wc -l | xargs) -eq 0 ]; then | ||
echo "LiveApp started log does not exist. Check the logs above" | ||
exit 1; | ||
fi; | ||
- run: cat /usr/local/antmedia/log/antmedia-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Install Latest to Ubuntu 24.04 | ||
#on: [push] | ||
|
||
jobs: | ||
Install-Ubuntu-24-04: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | ||
#Get latest version | ||
- run: curl -L -o ant-media-server-community.zip $(curl -s https://api.github.com/repos/ant-media/Ant-Media-Server/releases/latest | grep "browser_download_url" | cut -d '"' -f 4) | ||
- run: ./install_ant-media-server.sh -i ant-media-server-community.zip | ||
- run: sleep 30 | ||
- run: cat /usr/local/antmedia/log/ant-media-server.log | ||
- run: | | ||
if [ $(cat /usr/local/antmedia/log/ant-media-server.log | grep "LiveApp started" | wc -l | xargs) -eq 0 ]; then | ||
echo "LiveApp started log does not exist. Check the logs above" | ||
exit 1; | ||
fi; | ||
- run: cat /usr/local/antmedia/log/antmedia-error.log | ||
Auto-Install-Community-: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | ||
#Get latest version | ||
- run: ./install_ant-media-server.sh | ||
- run: sleep 30 | ||
- run: cat /usr/local/antmedia/log/ant-media-server.log | ||
- run: | | ||
if [ $(cat /usr/local/antmedia/log/ant-media-server.log | grep "LiveApp started" | wc -l | xargs) -eq 0 ]; then | ||
echo "LiveApp started log does not exist. Check the logs above" | ||
exit 1; | ||
fi; | ||
- run: cat /usr/local/antmedia/log/antmedia-error.log | ||
Auto-Install-Enterprise-: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | ||
#Get latest version | ||
- run: bash -x ./install_ant-media-server.sh -l"${{ secrets.ENTERPRISE_LICENSE }}" | ||
- run: sleep 30 | ||
- run: cat /usr/local/antmedia/log/ant-media-server.log | ||
- run: | | ||
if [ $(cat /usr/local/antmedia/log/ant-media-server.log | grep "LiveApp started" | wc -l | xargs) -eq 0 ]; then | ||
echo "LiveApp started log does not exist. Check the logs above" | ||
exit 1; | ||
fi; | ||
- run: cat /usr/local/antmedia/log/antmedia-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters