Skip to content

Deploy Dev Websockets from 'explosions' branch #18

Deploy Dev Websockets from 'explosions' branch

Deploy Dev Websockets from 'explosions' branch #18

name: 🧪 Deploy Dev Websockets
on:
workflow_dispatch:
inputs:
random_mode:
type: boolean
default: false
description: Random Alerst Mode
fetch_interval:
type: number
default: 1
description: Memcached Fetch Interval (seconds)
run-name: Deploy Dev Websockets from '${{ github.ref_name }}' branch
jobs:
deploy_websocket_dev:
runs-on: ubuntu-latest
steps:
- name: Redeploy Dev WebSockets
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_SSH_USER }}
password: ${{ secrets.SERVER_SSH_PASSWORD }}
script: |
cd /root/ukraine_alarm_map/deploy/
git fetch --all
git switch ${{ github.ref_name }}
git pull
bash redeploy_websocket_server_dev.sh -m ${{ secrets.MEMCACHED_HOST }} -s ${{ secrets.API_SECRET }} -i ${{ secrets.MEASUREMENT_ID }} -r ${{ inputs.random_mode && 'True' || 'False' }} -f ${{ inputs.fetch_interval }}