Replace hard-coded hostname with input
This commit is contained in:
parent
27cdc5104b
commit
1001b3b503
1 changed files with 9 additions and 6 deletions
15
.github/workflows/deploy.yml
vendored
15
.github/workflows/deploy.yml
vendored
|
@ -1,15 +1,18 @@
|
||||||
name: Deploy (Production)
|
name: Deploy (Production)
|
||||||
|
|
||||||
on: workflow_dispatch
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
hostname:
|
||||||
|
description: Hostname
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: antville.org
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: antville
|
runs-on: antville
|
||||||
|
|
||||||
environment:
|
|
||||||
name: antville.org
|
|
||||||
url: https://antville.org
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Copy files to production server
|
- name: Copy files to production server
|
||||||
run: ssh staging-server deploy-helma
|
run: ssh ${{ inputs.hostname }} deploy-helma
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue