From 1001b3b5032ca19a28e6104a448043fb77803214 Mon Sep 17 00:00:00 2001 From: tobi Date: Sat, 24 May 2025 19:14:30 +0000 Subject: [PATCH] Replace hard-coded hostname with input --- .github/workflows/deploy.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5acc94a2..5a011f69 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,15 +1,18 @@ name: Deploy (Production) -on: workflow_dispatch +on: + workflow_dispatch: + inputs: + hostname: + description: Hostname + type: string + required: true + default: antville.org jobs: deploy: runs-on: antville - environment: - name: antville.org - url: https://antville.org - steps: - name: Copy files to production server - run: ssh staging-server deploy-helma + run: ssh ${{ inputs.hostname }} deploy-helma