-
-
Notifications
You must be signed in to change notification settings - Fork 8
30 lines (29 loc) · 1.09 KB
/
deploy_websockets_dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 }}