mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 06:20:44 +00:00
remove falk1 from deployment
This commit is contained in:
@@ -22,7 +22,6 @@ on:
|
|||||||
- masters
|
- masters
|
||||||
- staging
|
- staging
|
||||||
- falk2
|
- falk2
|
||||||
- falk1
|
|
||||||
target_subdomain:
|
target_subdomain:
|
||||||
description: "Deployment Subdomain"
|
description: "Deployment Subdomain"
|
||||||
required: false
|
required: false
|
||||||
@@ -94,7 +93,6 @@ jobs:
|
|||||||
- name: 🔑 Create SSH private key
|
- name: 🔑 Create SSH private key
|
||||||
env:
|
env:
|
||||||
SERVER_HOST_MASTERS: ${{ secrets.SERVER_HOST_MASTERS }}
|
SERVER_HOST_MASTERS: ${{ secrets.SERVER_HOST_MASTERS }}
|
||||||
SERVER_HOST_FALK1: ${{ secrets.SERVER_HOST_FALK1 }}
|
|
||||||
SERVER_HOST_FALK2: ${{ secrets.SERVER_HOST_FALK2 }}
|
SERVER_HOST_FALK2: ${{ secrets.SERVER_HOST_FALK2 }}
|
||||||
SERVER_HOST_STAGING: ${{ secrets.SERVER_HOST_STAGING }}
|
SERVER_HOST_STAGING: ${{ secrets.SERVER_HOST_STAGING }}
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
@@ -103,7 +101,6 @@ jobs:
|
|||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
|
echo "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa
|
||||||
test -n "$SERVER_HOST_MASTERS" && ssh-keyscan -H "$SERVER_HOST_MASTERS" >> ~/.ssh/known_hosts
|
test -n "$SERVER_HOST_MASTERS" && ssh-keyscan -H "$SERVER_HOST_MASTERS" >> ~/.ssh/known_hosts
|
||||||
test -n "$SERVER_HOST_FALK1" && ssh-keyscan -H "$SERVER_HOST_FALK1" >> ~/.ssh/known_hosts
|
|
||||||
test -n "$SERVER_HOST_FALK2" && ssh-keyscan -H "$SERVER_HOST_FALK2" >> ~/.ssh/known_hosts
|
test -n "$SERVER_HOST_FALK2" && ssh-keyscan -H "$SERVER_HOST_FALK2" >> ~/.ssh/known_hosts
|
||||||
test -n "$SERVER_HOST_STAGING" && ssh-keyscan -H "$SERVER_HOST_STAGING" >> ~/.ssh/known_hosts
|
test -n "$SERVER_HOST_STAGING" && ssh-keyscan -H "$SERVER_HOST_STAGING" >> ~/.ssh/known_hosts
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
@@ -120,7 +117,6 @@ jobs:
|
|||||||
TURNSTILE_SECRET_KEY: ${{ secrets.TURNSTILE_SECRET_KEY }}
|
TURNSTILE_SECRET_KEY: ${{ secrets.TURNSTILE_SECRET_KEY }}
|
||||||
API_KEY: ${{ secrets.API_KEY }}
|
API_KEY: ${{ secrets.API_KEY }}
|
||||||
SERVER_HOST_MASTERS: ${{ secrets.SERVER_HOST_MASTERS }}
|
SERVER_HOST_MASTERS: ${{ secrets.SERVER_HOST_MASTERS }}
|
||||||
SERVER_HOST_FALK1: ${{ secrets.SERVER_HOST_FALK1 }}
|
|
||||||
SERVER_HOST_FALK2: ${{ secrets.SERVER_HOST_FALK2 }}
|
SERVER_HOST_FALK2: ${{ secrets.SERVER_HOST_FALK2 }}
|
||||||
SERVER_HOST_STAGING: ${{ secrets.SERVER_HOST_STAGING }}
|
SERVER_HOST_STAGING: ${{ secrets.SERVER_HOST_STAGING }}
|
||||||
SSH_KEY: ~/.ssh/id_rsa
|
SSH_KEY: ~/.ssh/id_rsa
|
||||||
|
|||||||
+7
-7
@@ -15,34 +15,34 @@ print_header "BUILD AND DEPLOY WRAPPER"
|
|||||||
echo "This script will run build.sh and deploy.sh in sequence."
|
echo "This script will run build.sh and deploy.sh in sequence."
|
||||||
echo "You can also run them separately:"
|
echo "You can also run them separately:"
|
||||||
echo " ./build.sh [prod|staging] [version_tag]"
|
echo " ./build.sh [prod|staging] [version_tag]"
|
||||||
echo " ./deploy.sh [prod|staging] [falk1|falk2|nbg1|staging|masters] [version_tag] [subdomain]"
|
echo " ./deploy.sh [prod|staging] [falk2|nbg1|staging|masters] [version_tag] [subdomain]"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# Check command line arguments
|
# Check command line arguments
|
||||||
if [ $# -lt 3 ] || [ $# -gt 5 ]; then
|
if [ $# -lt 3 ] || [ $# -gt 5 ]; then
|
||||||
echo "Error: Please specify environment, host, and subdomain"
|
echo "Error: Please specify environment, host, and subdomain"
|
||||||
echo "Usage: $0 [prod|staging] [falk1|falk2|nbg1|staging|masters] [subdomain]"
|
echo "Usage: $0 [prod|staging] [falk2|nbg1|staging|masters] [subdomain]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Validate first argument (environment)
|
# Validate first argument (environment)
|
||||||
if [ "$1" != "prod" ] && [ "$1" != "staging" ]; then
|
if [ "$1" != "prod" ] && [ "$1" != "staging" ]; then
|
||||||
echo "Error: First argument must be either 'prod' or 'staging'"
|
echo "Error: First argument must be either 'prod' or 'staging'"
|
||||||
echo "Usage: $0 [prod|staging] [falk1|falk2|nbg1|staging|masters] [subdomain]"
|
echo "Usage: $0 [prod|staging] [falk2|nbg1|staging|masters] [subdomain]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Validate second argument (host)
|
# Validate second argument (host)
|
||||||
if [ "$2" != "falk1" ] && [ "$2" != "falk2" ] && [ "$2" != "nbg1" ] && [ "$2" != "staging" ] && [ "$2" != "masters" ]; then
|
if [ "$2" != "falk2" ] && [ "$2" != "nbg1" ] && [ "$2" != "staging" ] && [ "$2" != "masters" ]; then
|
||||||
echo "Error: Second argument must be either 'falk1', 'nbg1', 'staging', or 'masters'"
|
echo "Error: Second argument must be either 'falk2', 'nbg1', 'staging', or 'masters'"
|
||||||
echo "Usage: $0 [prod|staging] [falk1|falk2|nbg1|staging|masters] [subdomain]"
|
echo "Usage: $0 [prod|staging] [falk2|nbg1|staging|masters] [subdomain]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Validate third argument (subdomain)
|
# Validate third argument (subdomain)
|
||||||
if [ -z "$3" ]; then
|
if [ -z "$3" ]; then
|
||||||
echo "Error: Subdomain is required"
|
echo "Error: Subdomain is required"
|
||||||
echo "Usage: $0 [prod|staging] [falk1|falk2|nbg1|staging|masters] [subdomain]"
|
echo "Usage: $0 [prod|staging] [falk2|nbg1|staging|masters] [subdomain]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -16,21 +16,21 @@ print_header() {
|
|||||||
# Check command line arguments
|
# Check command line arguments
|
||||||
if [ $# -ne 4 ]; then
|
if [ $# -ne 4 ]; then
|
||||||
echo "Error: Please specify environment, host, version tag, and subdomain"
|
echo "Error: Please specify environment, host, version tag, and subdomain"
|
||||||
echo "Usage: $0 [prod|staging] [falk1|nbg1|staging|masters] [version_tag] [subdomain]"
|
echo "Usage: $0 [prod|staging] [nbg1|staging|masters|falk2] [version_tag] [subdomain]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Validate first argument (environment)
|
# Validate first argument (environment)
|
||||||
if [ "$1" != "prod" ] && [ "$1" != "staging" ]; then
|
if [ "$1" != "prod" ] && [ "$1" != "staging" ]; then
|
||||||
echo "Error: First argument must be either 'prod' or 'staging'"
|
echo "Error: First argument must be either 'prod' or 'staging'"
|
||||||
echo "Usage: $0 [prod|staging] [falk1|nbg1|staging|masters] [version_tag] [subdomain]"
|
echo "Usage: $0 [prod|staging] [nbg1|staging|masters|falk2] [version_tag] [subdomain]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Validate second argument (host)
|
# Validate second argument (host)
|
||||||
if [ "$2" != "falk1" ] && [ "$2" != "falk2" ] && [ "$2" != "nbg1" ] && [ "$2" != "staging" ] && [ "$2" != "masters" ]; then
|
if [ "$2" != "falk2" ] && [ "$2" != "nbg1" ] && [ "$2" != "staging" ] && [ "$2" != "masters" ]; then
|
||||||
echo "Error: Second argument must be either 'falk1', 'falk2', 'nbg1', 'staging', or 'masters'"
|
echo "Error: Second argument must be either 'falk2', 'nbg1', 'staging', or 'masters'"
|
||||||
echo "Usage: $0 [prod|staging] [falk1|falk2|nbg1|staging|masters] [version_tag] [subdomain]"
|
echo "Usage: $0 [prod|staging] [nbg1|staging|masters|falk2] [version_tag] [subdomain]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -78,9 +78,6 @@ elif [ "$HOST" == "masters" ]; then
|
|||||||
elif [ "$HOST" == "falk2" ]; then
|
elif [ "$HOST" == "falk2" ]; then
|
||||||
print_header "DEPLOYING TO FALK2 HOST"
|
print_header "DEPLOYING TO FALK2 HOST"
|
||||||
SERVER_HOST=$SERVER_HOST_FALK2
|
SERVER_HOST=$SERVER_HOST_FALK2
|
||||||
else
|
|
||||||
print_header "DEPLOYING TO FALK1 HOST"
|
|
||||||
SERVER_HOST=$SERVER_HOST_FALK1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check required environment variables
|
# Check required environment variables
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ API_KEY=your_api_key_here
|
|||||||
|
|
||||||
# Server Hosts
|
# Server Hosts
|
||||||
SERVER_HOST_STAGING=123.456.78.90
|
SERVER_HOST_STAGING=123.456.78.90
|
||||||
SERVER_HOST_FALK1=123.456.78.91
|
|
||||||
SERVER_HOST_NBG1=123.456.78.92
|
SERVER_HOST_NBG1=123.456.78.92
|
||||||
|
|
||||||
# Version
|
# Version
|
||||||
|
|||||||
Reference in New Issue
Block a user