Merge remote-tracking branch 'origin/main' into renovate/major-jetty-packages

This commit is contained in:
Tobi Schäfer 2025-05-24 21:41:38 +02:00
commit f9bc64d1ed
Signed by: tobi
GPG key ID: 91FAE6FE2EBAC4C8
2 changed files with 21 additions and 11 deletions

View file

@ -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

View file

@ -1,6 +1,13 @@
name: Deploy (Staging)
on: workflow_dispatch
on:
workflow_dispatch:
inputs:
hostname:
description: Hostname
type: string
required: true
default: antville.org
jobs:
stage:
@ -8,7 +15,7 @@ jobs:
environment:
name: stage
url: ${{ vars.stage_url }}
url: ${{ inputs.hostname }}
steps:
- uses: actions/checkout@v4
@ -16,9 +23,9 @@ jobs:
- name: Build with Gradle
run: ./gradlew installDist
- name: Publish to staging server
- name: Copy build files to server
run: |
rsync ./build/install/helma/ staging-server:./ \
rsync ./build/install/helma/ ${{ inputs.hostname }}:./ \
--verbose --archive --delete --compress \
--filter '+ /bin' \
--filter '+ /extras' \
@ -29,4 +36,4 @@ jobs:
--filter '- /*'
- name: Restart Helma
run: ssh staging-server restart
run: ssh ${{ inputs.hostname }} restart