From 35adae3978585a256dd2fe963e6df613b2393c01 Mon Sep 17 00:00:00 2001 From: spassignat Date: Mon, 4 May 2026 17:19:25 +0200 Subject: [PATCH] patch: pipeline minio --- .woodpecker/build-pipeline.yml | 6 +++--- .woodpecker/deploy-pipeline.yml | 12 ++++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.woodpecker/build-pipeline.yml b/.woodpecker/build-pipeline.yml index 7bcf11c..4bc5232 100644 --- a/.woodpecker/build-pipeline.yml +++ b/.woodpecker/build-pipeline.yml @@ -3,9 +3,9 @@ when: branch: [ main ] variables: - - &node_image: node:18-alpine - - &git_image: alpine/git - - &curl_image: curlimages/curl:latest + - &node_image node:18-alpine + - &git_image alpine/git + - &curl_image curlimages/curl:latest - NEXUS_API: http://nexus.cicd.exygen.fr/service/rest/v1/ - WOODPECKER_API: http://woodpecker.cicd.exygen.fr/api - NEXUS_URL: http://nexus.cicd.exygen.fr/repository/domaine-passignat/apps diff --git a/.woodpecker/deploy-pipeline.yml b/.woodpecker/deploy-pipeline.yml index 62b7560..74ba5e8 100644 --- a/.woodpecker/deploy-pipeline.yml +++ b/.woodpecker/deploy-pipeline.yml @@ -3,12 +3,16 @@ when: - event: [ deployment,manual ] variables: + - &minio_mc minio/mc + - &appleboy_drone-scp appleboy/drone-scp + - &appleboy_drone-ssh appleboy/drone-ssh + - &curlimages_curl:latest curlimages/curl:latest - NEXUS_URL: https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps steps: - name: get-share-data - image: minio/mc + image: *minio_mc commands: - echo "ℹ️ Save pipeline info" - mc alias set local http://minio:9000 minioadmin minioadmin123 @@ -17,7 +21,7 @@ steps: - more .buildinfo - name: get-artifact - image: curlimages/curl:latest + image: *curlimages_curl commands: | - ls -als - more .buildinfo @@ -28,7 +32,7 @@ steps: # Étape 7: Transfert vers le serveur distant (SCP) - name: transfert - image: appleboy/drone-scp + image: *appleboy_drone-scp settings: host: from_secret: remote_host @@ -43,7 +47,7 @@ steps: # Étape 8: Déploiement sur le serveur distant - name: deploy - image: appleboy/drone-ssh + image: *appleboy_drone-ssh environment: SUDO_PASSWORD: from_secret: remote_password