patch: pipeline minio
This commit is contained in:
@@ -11,20 +11,15 @@ steps:
|
||||
# Étape 1: Nettoyage du projet
|
||||
- name: clean_project
|
||||
image: *git_image
|
||||
commands: |
|
||||
ls -als /
|
||||
touch /shared/build.txt
|
||||
echo "1 $CI_WORKSPACE"
|
||||
rm -rf dist
|
||||
rm -f $CI_WORKSPACE/build/version.env
|
||||
echo "✅ Nettoyage terminé"
|
||||
depends_on: [ ]
|
||||
commands:
|
||||
- rm -rf dist
|
||||
- rm -f $CI_WORKSPACE/build/version.env
|
||||
- echo "✅ Nettoyage terminé"
|
||||
|
||||
# Étape 2: Analyser le message du commit
|
||||
- name: prepare
|
||||
image: *git_image
|
||||
commands: |
|
||||
|
||||
COMMIT_MSG=$(git log -1 --pretty=%B)
|
||||
echo "📝 Message: $COMMIT_MSG"
|
||||
|
||||
@@ -141,12 +136,7 @@ steps:
|
||||
from_secret: gitea_token
|
||||
commands: |
|
||||
source $CI_WORKSPACE/version.env
|
||||
if [ -d "/shared" ]; then
|
||||
echo "Le répertoire shared existe"
|
||||
ls -als /shared/
|
||||
else
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ "$version_type" != "none" ]; then
|
||||
git remote set-url origin http://oauth2:$GITEA_TOKEN@gitea.cicd.exygen.fr/$CI_REPO_OWNER/$CI_REPO_NAME.git
|
||||
git config user.email "woodpecker@exygen.fr"
|
||||
@@ -172,7 +162,6 @@ steps:
|
||||
else
|
||||
echo "⚠️ Aucun changement à commiter"
|
||||
fi
|
||||
ls -alsR /shared/builds/
|
||||
depends_on: [ publish ]
|
||||
|
||||
- name: share-data
|
||||
|
||||
Reference in New Issue
Block a user