mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
17 lines
No EOL
358 B
Bash
Executable file
17 lines
No EOL
358 B
Bash
Executable file
#/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
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" |