patch: pipeline minio
This commit is contained in:
@@ -138,7 +138,7 @@ steps:
|
|||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
commands: |
|
commands: |
|
||||||
source $CI_WORKSPACE/version.env
|
source $CI_WORKSPACE/version.env
|
||||||
|
|
||||||
if [ "$version_type" != "none" ]; then
|
if [ "$version_type" != "none" ]; then
|
||||||
git remote set-url origin http://oauth2:$GITEA_TOKEN@gitea.cicd.exygen.fr/$CI_REPO_OWNER/$CI_REPO_NAME.git
|
git remote set-url origin http://oauth2:$GITEA_TOKEN@gitea.cicd.exygen.fr/$CI_REPO_OWNER/$CI_REPO_NAME.git
|
||||||
git config user.email "woodpecker@exygen.fr"
|
git config user.email "woodpecker@exygen.fr"
|
||||||
|
|||||||
@@ -7,18 +7,17 @@ variables:
|
|||||||
appleboy_drone_scp: &appleboy_drone_scp appleboy/drone-scp
|
appleboy_drone_scp: &appleboy_drone_scp appleboy/drone-scp
|
||||||
appleboy_drone_ssh: &appleboy_drone_ssh appleboy/drone-ssh
|
appleboy_drone_ssh: &appleboy_drone_ssh appleboy/drone-ssh
|
||||||
curlimages_curl: &curlimages_curl curlimages/curl:latest
|
curlimages_curl: &curlimages_curl curlimages/curl:latest
|
||||||
nexus_url: &nexus_url https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps
|
nexus_url: &nexus_url http://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 "ℹ️ Load pipeline info"
|
||||||
- mc alias set local http://minio:9000 minioadmin minioadmin123
|
- mc alias set local http://minio:9000 minioadmin minioadmin123
|
||||||
- mc get local/cicd/repository_$CI_REPO_REMOTE_ID/pipeline_$CI_PIPELINE_PARENT .buildinfo
|
- mc get local/cicd/repository_$CI_REPO_REMOTE_ID/pipeline_$CI_PIPELINE_PARENT .buildinfo
|
||||||
- ls -als
|
- ls -als
|
||||||
- more .buildinfo
|
|
||||||
|
|
||||||
- name: get-artifact
|
- name: get-artifact
|
||||||
image: *curlimages_curl
|
image: *curlimages_curl
|
||||||
@@ -31,11 +30,10 @@ steps:
|
|||||||
NEXUS_URL: *nexus_url
|
NEXUS_URL: *nexus_url
|
||||||
commands: |
|
commands: |
|
||||||
- ls -als
|
- ls -als
|
||||||
- more .buildinfo
|
|
||||||
- source .buildinfo
|
- source .buildinfo
|
||||||
- echo new version: ${NEW_VERSION}
|
- 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"
|
- 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]
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user