From c49bfa33a88ac8cfe13a71c1d54173ea624980f4 Mon Sep 17 00:00:00 2001 From: spassignat Date: Mon, 4 May 2026 16:31:44 +0200 Subject: [PATCH] patch: pipeline minio --- .woodpecker/build-pipeline.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.woodpecker/build-pipeline.yml b/.woodpecker/build-pipeline.yml index 0386186..229cbbb 100644 --- a/.woodpecker/build-pipeline.yml +++ b/.woodpecker/build-pipeline.yml @@ -136,8 +136,6 @@ steps: # Étape 7: Commit et tag - name: commit_tag image: *git_image - volumes: - - wp-shared:/shared environment: GITEA_TOKEN: from_secret: gitea_token @@ -154,13 +152,6 @@ steps: git config user.email "woodpecker@exygen.fr" git config user.name "Woodpecker CI" - echo "ℹ️ Save pipeline info" - BUILD=/shared/builds/$CI_REPO_REMOTE_ID/$CI_PIPELINE_NUMBER - mkdir -p /shared/builds/$CI_REPO_REMOTE_ID/ - echo NEW_VERSION=$NEW_VERSION > $BUILD - echo NEW_VERSION=$NEW_VERSION > $BUILD - git add $BUILD 2>/dev/null || true - echo "ℹ️ add generated files (sql)" git add ./database/src/sql/*.sql 2>/dev/null || true git add package.json 2>/dev/null || true @@ -184,6 +175,16 @@ steps: ls -alsR /shared/builds/ depends_on: [ publish ] + - name: share-data + image: minio/mc + commands: + - echo "ℹ️ Save pipeline info" + - echo NEW_VERSION=$NEW_VERSION > .buildinfo + - mc alias set local http://minio:9000 minioadmin minioadmin123 + - mc mb local/ci || true + - mc cp .buildinfo local/ci/$CI_REPO_REMOTE_ID/$CI_PIPELINE_NUMBER + depends_on: [ commit_tag ] + # Étape 8: Déclencher le déploiement - name: trigger-deployment image: curlimages/curl:latest @@ -239,7 +240,3 @@ steps: depends_on: [ commit_tag ] when: - event: never -volumes: - wp-shared: - host: - path: /shared \ No newline at end of file