From e25080a87cae51f7612c57be65ef989ebe9764b5 Mon Sep 17 00:00:00 2001 From: spassignat Date: Mon, 4 May 2026 18:26:39 +0200 Subject: [PATCH] patch: pipeline minio --- .woodpecker/build-pipeline.yml | 2 +- .woodpecker/deploy-pipeline.yml | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.woodpecker/build-pipeline.yml b/.woodpecker/build-pipeline.yml index ab4e4ae..5ff55b8 100644 --- a/.woodpecker/build-pipeline.yml +++ b/.woodpecker/build-pipeline.yml @@ -138,7 +138,7 @@ steps: from_secret: gitea_token commands: | source $CI_WORKSPACE/version.env - + 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" diff --git a/.woodpecker/deploy-pipeline.yml b/.woodpecker/deploy-pipeline.yml index 7cc946e..392954e 100644 --- a/.woodpecker/deploy-pipeline.yml +++ b/.woodpecker/deploy-pipeline.yml @@ -7,18 +7,17 @@ variables: appleboy_drone_scp: &appleboy_drone_scp appleboy/drone-scp appleboy_drone_ssh: &appleboy_drone_ssh appleboy/drone-ssh curlimages_curl: &curlimages_curl curlimages/curl:latest - nexus_url: &nexus_url https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps + nexus_url: &nexus_url http://nexus.cicd.exygen.fr/repository/domaine-passignat/apps steps: - name: get-share-data image: *minio_mc commands: - - echo "ℹ️ Save pipeline info" + - echo "ℹ️ Load pipeline info" - mc alias set local http://minio:9000 minioadmin minioadmin123 - mc get local/cicd/repository_$CI_REPO_REMOTE_ID/pipeline_$CI_PIPELINE_PARENT .buildinfo - ls -als - - more .buildinfo - name: get-artifact image: *curlimages_curl @@ -31,11 +30,10 @@ steps: NEXUS_URL: *nexus_url commands: | - ls -als - - more .buildinfo - source .buildinfo - echo new version: ${NEW_VERSION} - curl -o /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar "$NEXUS_URL/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${VERSION}.tar" - depends_on: [ get-share-data] + depends_on: [ get-share-data ] # Étape 7: Transfert vers le serveur distant (SCP) - name: transfert