patch: pipeline minio

This commit is contained in:
spassignat
2026-05-04 16:38:03 +02:00
parent c49bfa33a8
commit cc0e6db4a7
2 changed files with 15 additions and 20 deletions

View File

@@ -4,13 +4,19 @@ when:
- event: [ deployment,manual ]
steps:
- 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 get local/ci/$CI_REPO_REMOTE_ID/$CI_PIPELINE_PARENT .buildinfo
depends_on: [ commit_tag ]
- name: get-artifact
image: curlimages/curl:latest
commands: |
env
BUILD=/shared/builds/$CI_REPO_REMOTE_ID/$CI_PIPELINE_PARENT
ls -alsR /shared/builds/
source $BUILD
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"