22 lines
479 B
Bash
Executable File
22 lines
479 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
BUILD_DIR="$ROOT_DIR/build"
|
|
STAMP="$(date +%Y%m%d-%H%M%S)"
|
|
TARGET="$BUILD_DIR/kaffeekasse-saas-$STAMP.tar.gz"
|
|
|
|
mkdir -p "$BUILD_DIR"
|
|
|
|
tar \
|
|
--exclude=".git" \
|
|
--exclude=".env" \
|
|
--exclude="build" \
|
|
--exclude="storage/cache/*" \
|
|
--exclude="storage/logs/*" \
|
|
--exclude="storage/uploads/*" \
|
|
-czf "$TARGET" \
|
|
-C "$ROOT_DIR" .
|
|
|
|
echo "Release package created: $TARGET"
|