patch: pipeline minio
This commit is contained in:
@@ -4,7 +4,7 @@ when:
|
|||||||
- event: [ deployment,manual ]
|
- event: [ deployment,manual ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: share-data
|
- name: get-share-data
|
||||||
image: minio/mc
|
image: minio/mc
|
||||||
commands:
|
commands:
|
||||||
- echo "ℹ️ Save pipeline info"
|
- echo "ℹ️ Save pipeline info"
|
||||||
@@ -19,6 +19,7 @@ steps:
|
|||||||
echo new version: ${NEW_VERSION}
|
echo new version: ${NEW_VERSION}
|
||||||
curl -o /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar \
|
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"
|
"https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${VERSION}.tar"
|
||||||
|
depends_on: [ get-share-data]
|
||||||
|
|
||||||
# Étape 7: Transfert vers le serveur distant (SCP)
|
# Étape 7: Transfert vers le serveur distant (SCP)
|
||||||
- name: transfert
|
- name: transfert
|
||||||
@@ -33,7 +34,7 @@ steps:
|
|||||||
port: 22
|
port: 22
|
||||||
source: /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar
|
source: /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar
|
||||||
target: /tmp/
|
target: /tmp/
|
||||||
depends_on: [ get-artifact ,share-data]
|
depends_on: [ get-artifact ]
|
||||||
|
|
||||||
# Étape 8: Déploiement sur le serveur distant
|
# Étape 8: Déploiement sur le serveur distant
|
||||||
- name: deploy
|
- name: deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user