Compare commits
No commits in common. "3a8997ca5c1ca4633178e39233c66080483c8335" and "1bb5a093dadf0c371aa0f227094cbc2a04bf044d" have entirely different histories.
3a8997ca5c
...
1bb5a093da
2 changed files with 0 additions and 94 deletions
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
|
@ -1,34 +0,0 @@
|
||||||
name: Build
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- build.gradle
|
|
||||||
- settings.gradle
|
|
||||||
- src/**
|
|
||||||
- launcher/build.gradle
|
|
||||||
- launcher/src/**
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: antville
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
java: [11, 17, 21]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Java
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: ${{ matrix.java }}
|
|
||||||
|
|
||||||
- name: Set up Gradle
|
|
||||||
uses: gradle/actions/setup-gradle@v3
|
|
||||||
|
|
||||||
- name: Compile with Gradle
|
|
||||||
run: ./gradlew :compileJava
|
|
60
src/dist/extras/deploy.sh
vendored
60
src/dist/extras/deploy.sh
vendored
|
@ -1,60 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Use this script as forced command of an authorized SSH key:
|
|
||||||
# command="/home/helma/extras/deploy.sh" ssh-ed25519 AAAAC3NzaC…
|
|
||||||
|
|
||||||
# Define HELMA_HOST and ANTVILLE_HOST in this file
|
|
||||||
# shellcheck source=/dev/null
|
|
||||||
. "$HOME"/deploy.env
|
|
||||||
|
|
||||||
case "$SSH_ORIGINAL_COMMAND" in
|
|
||||||
ping)
|
|
||||||
echo pong
|
|
||||||
;;
|
|
||||||
|
|
||||||
deploy-helma)
|
|
||||||
rsync ./ "$HELMA_HOST":./ \
|
|
||||||
--archive --compress --delete --verbose \
|
|
||||||
--filter '+ /bin' \
|
|
||||||
--filter '+ /extras' \
|
|
||||||
--filter '+ /launcher.jar' \
|
|
||||||
--filter '- /lib/ext' \
|
|
||||||
--filter '+ /lib' \
|
|
||||||
--filter '+ /modules' \
|
|
||||||
--filter '- /*'
|
|
||||||
printf 'Restarting Helma on HELMA_host… '
|
|
||||||
ssh "$HELMA_HOST" sudo /bin/systemctl restart helma
|
|
||||||
;;
|
|
||||||
|
|
||||||
deploy-antville)
|
|
||||||
rsync ./apps/antville/ "$ANTVILLE_HOST":./apps/antville/ \
|
|
||||||
--archive --compress --delete --verbose \
|
|
||||||
--filter '+ /claustra' \
|
|
||||||
--filter '+ /code' \
|
|
||||||
--filter '+ /compat' \
|
|
||||||
--filter '+ /i18n' \
|
|
||||||
--filter '+ /lib' \
|
|
||||||
--filter '- /*'
|
|
||||||
rsync ./apps/antville/static/helma/ "$ANTVILLE_HOST":./apps/antville/static/helma/ \
|
|
||||||
--archive --compress --verbose \
|
|
||||||
--filter '+ /fonts' \
|
|
||||||
--filter '+ /formica.html' \
|
|
||||||
--filter '+ /img' \
|
|
||||||
--filter '+ /scripts' \
|
|
||||||
--filter '+ /styles' \
|
|
||||||
--filter '- /*'
|
|
||||||
printf 'Restarting Helma on ANTVILLE_host… '
|
|
||||||
ssh "$ANTVILLE_HOST" sudo /bin/systemctl restart helma
|
|
||||||
;;
|
|
||||||
|
|
||||||
restart)
|
|
||||||
printf 'Restarting Helma… '
|
|
||||||
sudo /bin/systemctl restart helma
|
|
||||||
printf '%s\n' 'done.'
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
# Allow any rsync command but restrict it to the installation directory
|
|
||||||
rrsync -wo /home/helma
|
|
||||||
;;
|
|
||||||
esac
|
|
Loading…
Add table
Reference in a new issue