feat(deploy): enhance deployment scripts with skip options for backend and frontend
All checks were successful
Deploy to production / deploy (push) Successful in 1m31s
All checks were successful
Deploy to production / deploy (push) Successful in 1m31s
- Updated `deploy-yourpart-bluegreen.sh` to pass additional arguments for skipping backend or frontend updates. - Enhanced `update.sh` to handle `--skip-backend` and `--skip-frontend` flags, allowing for more flexible deployment based on changes detected. - Modified deployment workflow to conditionally execute based on changes in frontend or backend files, improving deployment efficiency.
This commit is contained in:
@@ -11,6 +11,7 @@ set -euo pipefail
|
||||
|
||||
CURRENT_LINK="${CURRENT_LINK:-/opt/yourpart}"
|
||||
TARGET="${1:?Ziel-Slot-Verzeichnis fehlt (z. B. /opt/yourpart-green)}"
|
||||
shift || true
|
||||
|
||||
if [ ! -L "$CURRENT_LINK" ]; then
|
||||
echo "❌ ERROR: $CURRENT_LINK ist kein Symlink! (Blue-Green erfordert Symlink auf den aktiven Slot.)" >&2
|
||||
@@ -20,4 +21,4 @@ fi
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
exec ./update.sh "$TARGET"
|
||||
exec ./update.sh "$TARGET" "$@"
|
||||
|
||||
Reference in New Issue
Block a user