From 14e284bb400a10d31df368276b7a91f9de08e997 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Fri, 16 May 2025 19:12:52 -0400 Subject: [PATCH] Update deploy hosts (#774) ## Description: Update the deploy script with new hosts. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Summary by CodeRabbit - **Chores** - Updated deployment workflow to use new deployment targets: "masters" and "nbg1" (replacing "eu" and "us"), while retaining "staging". - Adjusted environment variables and SSH setup to support the new deployment hosts. --------- Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com> --- .github/workflows/deploy.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cb7a00b70..8abcf27bf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,8 +19,8 @@ on: default: "staging" type: choice options: - - eu - - us + - masters + - nbg1 - staging target_subdomain: description: "Deployment Subdomain" @@ -93,15 +93,17 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: 🔑 Create SSH private key env: - SERVER_HOST_EU: ${{ secrets.SERVER_HOST_EU }} + SERVER_HOST_MASTERS: ${{ secrets.SERVER_HOST_MASTERS }} + SERVER_HOST_NBG1: ${{ secrets.SERVER_HOST_NBG1 }} SERVER_HOST_STAGING: ${{ secrets.SERVER_HOST_STAGING }} SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} run: | set -euxo pipefail mkdir -p ~/.ssh 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_NBG1" && ssh-keyscan -H "$SERVER_HOST_NBG1" >> ~/.ssh/known_hosts test -n "$SERVER_HOST_STAGING" && ssh-keyscan -H "$SERVER_HOST_STAGING" >> ~/.ssh/known_hosts - test -n "$SERVER_HOST_EU" && ssh-keyscan -H "$SERVER_HOST_EU" >> ~/.ssh/known_hosts chmod 600 ~/.ssh/id_rsa - name: 🚢 Deploy env: @@ -120,7 +122,8 @@ jobs: R2_ACCESS_KEY: ${{ secrets.R2_ACCESS_KEY }} R2_BUCKET: ${{ secrets.R2_BUCKET }} R2_SECRET_KEY: ${{ secrets.R2_SECRET_KEY }} - SERVER_HOST_EU: ${{ secrets.SERVER_HOST_EU }} + SERVER_HOST_MASTERS: ${{ secrets.SERVER_HOST_MASTERS }} + SERVER_HOST_NBG1: ${{ secrets.SERVER_HOST_NBG1 }} SERVER_HOST_STAGING: ${{ secrets.SERVER_HOST_STAGING }} SSH_KEY: ~/.ssh/id_rsa VERSION_TAG: latest