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

@@ -3,9 +3,12 @@ when:
branch: [ main ]
variables:
- &node_image node:18-alpine
- &git_image alpine/git
- &curl_image curlimages/curl:latest
- &node_image: node:18-alpine
- &git_image: alpine/git
- &curl_image: curlimages/curl:latest
- NEXUS_API: http://nexus.cicd.exygen.fr/service/rest/v1/
- WOODPECKER_API: http://woodpecker.cicd.exygen.fr/api
- NEXUS_URL: http://nexus.cicd.exygen.fr/repository/domaine-passignat/apps
steps:
# Étape 1: Nettoyage du projet
@@ -120,8 +123,7 @@ steps:
-u "$NEXUS_USERNAME:$NEXUS_PASSWORD" \
-F "raw.directory=apps/$CI_REPO_NAME/$NEW_VERSION" \
-F "raw.asset1=@$ARTIFACT_FILE" \
-F "raw.asset1.filename=$ARTIFACT" \
http://nexus.cicd.exygen.fr/service/rest/v1/components?repository=$NEXUS_REPOSITORY
-F "raw.asset1.filename=$ARTIFACT" ${NEXUS_API}/components?repository=$NEXUS_REPOSITORY
echo "✅ Artefact publié"
else
echo "⏭️ Pas de publication (version_type=none)"
@@ -186,9 +188,8 @@ steps:
echo "🚀 Déclenchement du déploiement pour la version $NEW_VERSION"
echo "🚀 $CI_REPO_OWNER"
echo "🚀 $CI_REPO_NAME"
echo "http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines"
curl -v --fail -X POST \
"http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines" \
echo "${WOODPECKER_API}/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines"
curl -v --fail -X POST "${WOODPECKER_API}/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines" \
-H "Authorization: Bearer $WOODPECKER_TOKEN" \
-H "Content-Type: application/json" \
-d '{