This commit is contained in:
nora 2023-02-09 21:41:35 +01:00
parent fe10875296
commit df45dcbb9f
2 changed files with 42 additions and 0 deletions

15
ci/build.sh Executable file
View file

@ -0,0 +1,15 @@
#/usr/bin/env bash
APP="$1"
echo "Checking out $APP"
git clone "https://github.com/Nilstrieb/$APP.git" ../app
cd ../app
CURRENT_COMMIT=$(git rev-parse HEAD | cut -c1-8)
echo "Latest commit of $APP is $CURRENT_COMMIT"
IMAGE_FULL_NAME="docker.nilstrieb.dev/$APP:$CURRENT_COMMIT"
docker build -t "$IMAGE_FULL_NAME"
docker push "$IMAGE_FULL_NAME"