Deploy Dev Websockets from 'develop' branch #28
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
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 }} |