Changement ci sans test

Signed-off-by: Gato <cedric@goutailler-olivier.fr>
This commit is contained in:
2026-06-07 11:15:15 +02:00
parent 0318884ae8
commit 89bbc322b7
2 changed files with 28 additions and 50 deletions
-22
View File
@@ -1,22 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
REPO_ROOT=$(git rev-parse --show-toplevel)
BRANCH=$(git symbolic-ref --short HEAD)
echo "🔄 Pre-push : synchronisation avec origin/$BRANCH..."
if ! git pull --rebase origin "$BRANCH"; then
echo "❌ git pull --rebase a échoué — résous les conflits avant de pousser"
exit 1
fi
echo "🐳 Pre-push : build de l'image Docker de production..."
VERSION=$(grep '^version' "$REPO_ROOT/build.gradle" | awk -F"'" '{print $2}')
IMAGE="git.goutailler-olivier.com/gato/olhar-api:$VERSION"
if podman build -f "$REPO_ROOT/Dockerfile" -t "$IMAGE" "$REPO_ROOT"; then
echo "✅ Build Docker réussi ($IMAGE)"
else
echo "❌ Build Docker échoué — push annulé"
exit 1
fi