diff --git a/.github/actions/deploy-debian-12/action.yaml b/.github/actions/deploy-debian-12/action.yaml new file mode 100644 index 00000000..c845fb60 --- /dev/null +++ b/.github/actions/deploy-debian-12/action.yaml @@ -0,0 +1,18 @@ +name: Deploy on Debian 12 +runs: + using: composite + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Install Ant Media Server + shell: bash + run: | + apt-get -y install wget which findutils which crontabs unzip + 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) + bash ./install_ant-media-server.sh -i ant-media-server-community.zip -s false + /usr/local/antmedia/antmedia start + sleep 40 + 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;