Compare commits

..

5 commits

3 changed files with 33 additions and 21 deletions

View file

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

View file

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

22
.gitignore vendored
View file

@ -1,5 +1,7 @@
# Generally ignore hidden files
.* .*
# Manage some Codium configuration
.vscode/* .vscode/*
!.vscode !.vscode
!.vscode/extensions.json !.vscode/extensions.json
@ -7,22 +9,22 @@
!.vscode/settings.json !.vscode/settings.json
!.vscode/tasks.json !.vscode/tasks.json
build # Ignore files created during build or run
/apps
/bin /bin
/backups /backups
/db build
/docs /docs
/extras
/lib /lib
/licenses /licenses
/log /log
# Ignore files managed in src/dist
/*.properties
/apps
/db
/extras
/launcher.jar
/static /static
/*.properties # Manage Gradle configuration
!/gradle.properties !/gradle.properties
/launcher.jar
/passwd
/start.*