From bcf510b936e38bc0a99829cfac2266b2067a16b5 Mon Sep 17 00:00:00 2001 From: spassignat Date: Mon, 4 May 2026 08:30:54 +0200 Subject: [PATCH] patch: pipeline manual --- .woodpecker/deploy-pipeline.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.woodpecker/deploy-pipeline.yml b/.woodpecker/deploy-pipeline.yml index 256635b..c7529a6 100644 --- a/.woodpecker/deploy-pipeline.yml +++ b/.woodpecker/deploy-pipeline.yml @@ -13,8 +13,10 @@ steps: echo CI_PIPELINE_NUMBER=$CI_PIPELINE_NUMBER echo CI_PREV_PIPELINE_NUMBER=$CI_PREV_PIPELINE_NUMBER echo CI_PREV_PIPELINE_PARENT=$CI_PREV_PIPELINE_PARENT - curl -o /tmp/${CI_REPO_NAME}-${VERSION}.tar \ - "https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${VERSION}/${CI_REPO_NAME}-${VERSION}.tar" + source .woodpecker/$CI_PREV_PIPELINE_NUMBER + echo new version: $NEW_VERSION + curl -o /tmp/${CI_REPO_NAME}-$NEW_VERSION.tar \ + "https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/$NEW_VERSION/${CI_REPO_NAME}-${VERSION}.tar" # Étape 7: Transfert vers le serveur distant (SCP) - name: transfert @@ -27,7 +29,7 @@ steps: password: from_secret: remote_password port: 22 - source: /tmp/${CI_REPO_NAME}-${VERSION}.tar + source: /tmp/${CI_REPO_NAME}-$NEW_VERSION.tar target: /tmp/ depends_on: [ get-artifact ]