Skip to content

Commit

Permalink
Add CI/CD: upgrade.sh validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
muratugureminoglu authored Dec 11, 2023
1 parent 3d5526d commit 2fda10f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/upgrade-sh-validation.yml
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

0 comments on commit 2fda10f

Please sign in to comment.