mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +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
|
- widetom
|
||||||
- cargo-bisect-rustc-service
|
- cargo-bisect-rustc-service
|
||||||
- killua-bot
|
- killua-bot
|
||||||
|
- hugo-chat
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
||||||
22
ci/build.sh
22
ci/build.sh
|
|
@ -4,6 +4,28 @@ set -eu
|
||||||
|
|
||||||
APP="$1"
|
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"
|
echo "Checking out $APP"
|
||||||
|
|
||||||
git clone "https://github.com/Nilstrieb/$APP.git" ../app
|
git clone "https://github.com/Nilstrieb/$APP.git" ../app
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue