-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI/CD: upgrade.sh validation test
- Loading branch information
1 parent
3d5526d
commit 2fda10f
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
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,19 @@ | ||
name: Ant Media Server upgrade.sh Validation Test | ||
on: [push] | ||
|
||
jobs: | ||
install_and_upgrade_ant_media_server: | ||
runs-on: ubuntu-latest | ||
name: Install Previous Version of Ant Media Server | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install Ant Media Server | ||
run: | | ||
curl --progress-bar -o ams_community.zip -L "$(curl -s -H "Accept: application/vnd.github+json" https://api.github.com/repos/ant-media/Ant-Media-Server/releases | jq -r '.[1].assets[0].browser_download_url')" | ||
wget https://raw.githubusercontent.com/ant-media/Scripts/master/install_ant-media-server.sh | ||
sudo bash ./install_ant-media-server.sh -i ams_community.zip | ||
sleep 30 | ||
- name: Upgrade Ant Media Server | ||
run: | | ||
DIR='/usr/local/antmedia/' sudo bash ./upgrade.sh |