This commit is contained in:
@@ -3,9 +3,9 @@ when:
|
|||||||
branch: [ main ]
|
branch: [ main ]
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
- &node_image: node:18-alpine
|
- &node_image node:18-alpine
|
||||||
- &git_image: alpine/git
|
- &git_image alpine/git
|
||||||
- &curl_image: curlimages/curl:latest
|
- &curl_image curlimages/curl:latest
|
||||||
- NEXUS_API: http://nexus.cicd.exygen.fr/service/rest/v1/
|
- NEXUS_API: http://nexus.cicd.exygen.fr/service/rest/v1/
|
||||||
- WOODPECKER_API: http://woodpecker.cicd.exygen.fr/api
|
- WOODPECKER_API: http://woodpecker.cicd.exygen.fr/api
|
||||||
- NEXUS_URL: http://nexus.cicd.exygen.fr/repository/domaine-passignat/apps
|
- NEXUS_URL: http://nexus.cicd.exygen.fr/repository/domaine-passignat/apps
|
||||||
|
|||||||
@@ -3,12 +3,16 @@
|
|||||||
when:
|
when:
|
||||||
- event: [ deployment,manual ]
|
- event: [ deployment,manual ]
|
||||||
variables:
|
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
|
- NEXUS_URL: https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: get-share-data
|
- name: get-share-data
|
||||||
image: minio/mc
|
image: *minio_mc
|
||||||
commands:
|
commands:
|
||||||
- echo "ℹ️ Save pipeline info"
|
- echo "ℹ️ Save pipeline info"
|
||||||
- mc alias set local http://minio:9000 minioadmin minioadmin123
|
- mc alias set local http://minio:9000 minioadmin minioadmin123
|
||||||
@@ -17,7 +21,7 @@ steps:
|
|||||||
- more .buildinfo
|
- more .buildinfo
|
||||||
|
|
||||||
- name: get-artifact
|
- name: get-artifact
|
||||||
image: curlimages/curl:latest
|
image: *curlimages_curl
|
||||||
commands: |
|
commands: |
|
||||||
- ls -als
|
- ls -als
|
||||||
- more .buildinfo
|
- more .buildinfo
|
||||||
@@ -28,7 +32,7 @@ steps:
|
|||||||
|
|
||||||
# Étape 7: Transfert vers le serveur distant (SCP)
|
# Étape 7: Transfert vers le serveur distant (SCP)
|
||||||
- name: transfert
|
- name: transfert
|
||||||
image: appleboy/drone-scp
|
image: *appleboy_drone-scp
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
from_secret: remote_host
|
from_secret: remote_host
|
||||||
@@ -43,7 +47,7 @@ steps:
|
|||||||
|
|
||||||
# Étape 8: Déploiement sur le serveur distant
|
# Étape 8: Déploiement sur le serveur distant
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-ssh
|
image: *appleboy_drone-ssh
|
||||||
environment:
|
environment:
|
||||||
SUDO_PASSWORD:
|
SUDO_PASSWORD:
|
||||||
from_secret: remote_password
|
from_secret: remote_password
|
||||||
|
|||||||
Reference in New Issue
Block a user