mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 08:45:02 +01:00
support building hugochat
This commit is contained in:
parent
78bb6910f1
commit
11c10497ce
2 changed files with 23 additions and 0 deletions
1
.github/workflows/deploy.yaml
vendored
1
.github/workflows/deploy.yaml
vendored
|
|
@ -10,6 +10,7 @@ on:
|
|||
- widetom
|
||||
- cargo-bisect-rustc-service
|
||||
- killua-bot
|
||||
- hugo-chat
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
|
|||
22
ci/build.sh
22
ci/build.sh
|
|
@ -4,6 +4,28 @@ set -eu
|
|||
|
||||
APP="$1"
|
||||
|
||||
if [ "$APP" = "hugo-chat" ]; then
|
||||
git clone "https://github.com/C0RR1T/HugoChat.git" ../app
|
||||
cd ../app
|
||||
|
||||
CURRENT_COMMIT=$(git rev-parse HEAD | cut -c1-8)
|
||||
echo "Latest commit of $APP is $CURRENT_COMMIT"
|
||||
|
||||
IMAGE_PREFIX="docker.nilstrieb.dev/hugo-chat"
|
||||
SERVER_FULL_NAME="$IMAGE_PREFIX-server:$CURRENT_COMMIT"
|
||||
CLIENT_FULL_NAME="$IMAGE_PREFIX-client:$CURRENT_COMMIT"
|
||||
|
||||
cd ./HugoServer
|
||||
echo "Building server"
|
||||
docker build . -t "$SERVER_FULL_NAME"
|
||||
docker push "$SERVER_FULL_NAME"
|
||||
|
||||
cd ../hugo-client
|
||||
echo "Building client"
|
||||
docker build . -t "$CLIENT_FULL_NAME"
|
||||
docker push "$CLIENT_FULL_NAME"
|
||||
fi
|
||||
|
||||
echo "Checking out $APP"
|
||||
|
||||
git clone "https://github.com/Nilstrieb/$APP.git" ../app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue