Add CI build shell scripts.

This commit is contained in:
John Blum
2022-05-04 11:08:34 -07:00
parent b3a3203069
commit 73a1cf2d11
6 changed files with 68 additions and 0 deletions

15
ci/deployDocs.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash -x
set -eou pipefail
echo "Deploying docs on host [$HOSTNAME]"
# User ID 1001 is "jenkins"
# Group ID 1001 is "jenkins"
# Syntax: `chown -R userId:groupId .`
chown -R 1001:1001 .
GRADLE_OPTS="--add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED -Duser.name=jenkins -Duser.home=/tmp/jenkins-home -Djava.io.tmpdir=/tmp" \
./gradlew deployDocs --no-daemon --stacktrace \
-PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY \
-PdeployDocsSshUsername=$SPRING_DOCS_USERNAME