patch: pipeline minio

This commit is contained in:
spassignat
2026-05-04 17:10:25 +02:00
parent d20a29408f
commit 161e2c12cf
2 changed files with 19 additions and 13 deletions

View File

@@ -2,23 +2,28 @@
when:
- event: [ deployment,manual ]
variables:
- NEXUS_URL: https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps
steps:
- name: get-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 get local/cicd/repository_$CI_REPO_REMOTE_ID/pipeline_$CI_PIPELINE_PARENT .buildinfo
- ls -als
- more .buildinfo
- name: get-artifact
image: curlimages/curl:latest
commands: |
source .buildinfo
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"
- 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]
# Étape 7: Transfert vers le serveur distant (SCP)