diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 847ce0fa9..fc50835d9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Deploy to Remote +name: 🚀 Deploy on: workflow_dispatch: @@ -9,8 +9,22 @@ on: default: "staging" type: choice options: - - production + - prod - staging + target_host: + description: "Deployment Host" + required: true + default: "staging" + type: choice + options: + - eu + - us + - staging + target_subdomain: + description: "Deployment Subdomain" + required: false + default: "" + type: string jobs: deploy: @@ -29,10 +43,23 @@ jobs: mkdir -p ~/.ssh echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts - cat >.env <> ~/.ssh/known_hosts + cat >.env.${{ inputs.target_environment }} <