From 91149183a2def9771ee73de04d53477755db345f Mon Sep 17 00:00:00 2001 From: spassignat Date: Sat, 2 May 2026 19:19:14 +0200 Subject: [PATCH] patch: clean --- .woodpecker/build-pipeline.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.woodpecker/build-pipeline.yml b/.woodpecker/build-pipeline.yml index 9bd35fd..11874a7 100644 --- a/.woodpecker/build-pipeline.yml +++ b/.woodpecker/build-pipeline.yml @@ -9,7 +9,6 @@ variables: - &git_image alpine/git - &curl_image curlimages/curl:latest - steps: # Étape 1: Nettoyage du projet - name: clean_project @@ -20,7 +19,6 @@ steps: rm -rf dist rm -f $CI_WORKSPACE/build/version.env echo "✅ Nettoyage terminé" - depends_on: [ ] # Étape 2: Analyser le message du commit @@ -67,15 +65,14 @@ steps: echo "ARTIFACT=no-artifact" >> $CI_WORKSPACE/version.env echo "⏭️ Pas de mise à jour de version" fi - ls -als depends_on: [ prepare ] # Étape 4: Build de l'application - name: build image: *node_image - commands: | - npm ci --cache .npm --prefer-offline - npm run build + commands: + - npm ci --cache .npm --prefer-offline + - npm run build depends_on: [ update_version ] # Étape 5: Package des artefacts @@ -116,8 +113,6 @@ steps: NEXUS_REPOSITORY: domaine-passignat commands: | source $CI_WORKSPACE/version.env - echo $CI_REPO_OWNER - echo $CI_REPO_NAME if [ "$version_type" != "none" ]; then echo "📦 Publication de la version $NEW_VERSION : $ARTIFACT" @@ -127,7 +122,7 @@ steps: exit 1 fi - curl -v \ + curl -v --fail \ -u "$NEXUS_USERNAME:$NEXUS_PASSWORD" \ -F "raw.directory=apps/$CI_REPO_NAME/$NEW_VERSION" \ -F "raw.asset1=@$ARTIFACT_FILE" \ @@ -137,7 +132,7 @@ steps: else echo "⏭️ Pas de publication (version_type=none)" fi - ls -als + depends_on: [ package ] # Étape 7: Commit et tag (après publication)