mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-22 09:37:09 +00:00
* Add redeploy.sh to redeploy * Add redeploy to workflow * Update redeploy script * Redeploy script * Test * run after checkout * Update path * checkout ssh * Update build * remove unnecesary * Update placeholder * Update domain * Retrigger * Update docker login * Update config * deploy with config * Update sync config * Redeploy * Update redeploy.sh * Redeploy specific * redeploy.sh * redeploy specific.sh * add more server * Update redeploy * Update docker publish * Redeploy * Update port * Update redeploy.sh * test build * Remove test with build.yaml * Clean up * Clean up
21 lines
581 B
Bash
Executable file
Vendored
21 lines
581 B
Bash
Executable file
Vendored
#! /bin/bash
|
|
|
|
iplist="47.244.229.182"
|
|
for tagName in cloud-gaming cloud-gaming-eu cloud-gaming-usw; do
|
|
echo "scanning: $tagName"
|
|
regional_iplist=$(curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer "$DO_TOKEN "https://api.digitalocean.com/v2/droplets?tag_name=$tagName" | jq -r ".droplets[]" | jq -r ".networks.v4[0].ip_address")
|
|
|
|
for ip_address in $regional_iplist
|
|
do
|
|
iplist+=" $ip_address"
|
|
done
|
|
done
|
|
|
|
echo "iplist "$iplist
|
|
|
|
for ip_address in $iplist
|
|
do
|
|
.github/workflows/redeploy/redeploy_specific.sh $ip_address
|
|
done
|
|
|
|
echo 'done'
|