From 27cdc5104bc773998cb5bb05198de45996e47d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Fri, 11 Apr 2025 20:51:55 +0200 Subject: [PATCH 1/3] Reorganize and refurbish .gitignore file --- .gitignore | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 552a74e2..7bf7bcbc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ +# Generally ignore hidden files .* +# Manage some Codium configuration .vscode/* !.vscode !.vscode/extensions.json @@ -7,22 +9,22 @@ !.vscode/settings.json !.vscode/tasks.json -build - -/apps +# Ignore files created during build or run /bin /backups -/db +build /docs -/extras /lib /licenses /log + +# Ignore files managed in src/dist +/*.properties +/apps +/db +/extras +/launcher.jar /static -/*.properties +# Manage Gradle configuration !/gradle.properties - -/launcher.jar -/passwd -/start.* From 1001b3b5032ca19a28e6104a448043fb77803214 Mon Sep 17 00:00:00 2001 From: tobi Date: Sat, 24 May 2025 19:14:30 +0000 Subject: [PATCH 2/3] 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 From f6668636a97de0f8e9450d6c9c8990796d7a045e Mon Sep 17 00:00:00 2001 From: tobi Date: Sat, 24 May 2025 19:25:08 +0000 Subject: [PATCH 3/3] Replace hard-coded hostname with input --- .github/workflows/stage.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index 17e693d4..94e991cf 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -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