Compare commits

..

20 Commits

Author SHA1 Message Date
Woodpecker CI
68b3b81273 chore: release v0.0.13 [skip ci] 2026-05-02 20:36:23 +00:00
spassignat
7eedd9549d patch: with evt
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-02 22:35:22 +02:00
spassignat
e91c809d23 Merge remote-tracking branch 'origin/main'
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/manual/build-pipeline Pipeline was successful
2026-05-02 21:58:14 +02:00
spassignat
1de56405c4 patch: with evt 2026-05-02 21:58:04 +02:00
Woodpecker CI
0718c74966 chore: release v0.0.12 [skip ci] 2026-05-02 19:54:11 +00:00
spassignat
e180afb2e3 patch: with evt
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-02 21:53:07 +02:00
spassignat
fb305b72b3 Merge remote-tracking branch 'origin/main'
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-02 21:29:02 +02:00
spassignat
a7bcffac98 patch: with cicd 2026-05-02 21:28:31 +02:00
Woodpecker CI
62b401b5a1 chore: release v0.0.11 [skip ci] 2026-05-02 17:59:59 +00:00
spassignat
11b254dff0 patch: with cicd
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-02 19:59:00 +02:00
spassignat
d5a0aa55d5 Merge remote-tracking branch 'origin/main' 2026-05-02 19:58:53 +02:00
spassignat
4b5add7403 patch: with cicd 2026-05-02 19:58:45 +02:00
Woodpecker CI
c862b55393 chore: release v0.0.10 [skip ci] 2026-05-02 17:39:55 +00:00
spassignat
bb5aebdc83 patch: with cicd
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-02 19:38:55 +02:00
spassignat
d169289cb9 Merge remote-tracking branch 'origin/main'
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-02 19:37:09 +02:00
spassignat
ca1b8933a6 patch: with cicd 2026-05-02 19:37:01 +02:00
Woodpecker CI
0f10a62426 chore: release v0.0.9 [skip ci] 2026-05-02 17:28:20 +00:00
spassignat
ebcf40efb0 patch: with admin
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-02 19:27:17 +02:00
spassignat
066e5565c5 patch: upd pwd
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-02 19:24:05 +02:00
spassignat
91149183a2 patch: clean
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-02 19:19:14 +02:00
8 changed files with 37 additions and 13 deletions

View File

@@ -9,7 +9,6 @@ variables:
- &git_image alpine/git
- &curl_image curlimages/curl:latest
steps:
# Étape 1: Nettoyage du projet
- name: clean_project
@@ -20,7 +19,6 @@ steps:
rm -rf dist
rm -f $CI_WORKSPACE/build/version.env
echo "✅ Nettoyage terminé"
depends_on: [ ]
# Étape 2: Analyser le message du commit
@@ -67,15 +65,14 @@ steps:
echo "ARTIFACT=no-artifact" >> $CI_WORKSPACE/version.env
echo "⏭️ Pas de mise à jour de version"
fi
ls -als
depends_on: [ prepare ]
# Étape 4: Build de l'application
- name: build
image: *node_image
commands: |
npm ci --cache .npm --prefer-offline
npm run build
commands:
- npm ci --cache .npm --prefer-offline
- npm run build
depends_on: [ update_version ]
# Étape 5: Package des artefacts
@@ -116,8 +113,6 @@ steps:
NEXUS_REPOSITORY: domaine-passignat
commands: |
source $CI_WORKSPACE/version.env
echo $CI_REPO_OWNER
echo $CI_REPO_NAME
if [ "$version_type" != "none" ]; then
echo "📦 Publication de la version $NEW_VERSION : $ARTIFACT"
@@ -127,7 +122,7 @@ steps:
exit 1
fi
curl -v \
curl -v --fail \
-u "$NEXUS_USERNAME:$NEXUS_PASSWORD" \
-F "raw.directory=apps/$CI_REPO_NAME/$NEW_VERSION" \
-F "raw.asset1=@$ARTIFACT_FILE" \
@@ -137,7 +132,7 @@ steps:
else
echo "⏭️ Pas de publication (version_type=none)"
fi
ls -als
depends_on: [ package ]
# Étape 7: Commit et tag (après publication)
@@ -186,8 +181,10 @@ steps:
if [ "$version_type" != "none" ]; then
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 -X POST \
curl -v --fail -X POST \
"http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines" \
-H "Authorization: Bearer $WOODPECKER_TOKEN" \
-H "Content-Type: application/json" \
@@ -204,3 +201,25 @@ steps:
echo "⏭️ Pas de déclenchement (version_type=none)"
fi
depends_on: [ commit_tag ]
- name: trigger-deployment2
image: woodpeckerci/plugin-trigger
settings:
# L'URL de votre serveur Woodpecker
server: https://woodpecker.cicd.exygen.fr
# Le token d'API (doit être stocké comme secret)
token:
from_secret: woodpecker_token
# Le dépôt cible, avec la branche optionnelle (format propriétaire/répertoire[@branche])
repositories:
- domaine-passignat/gestion@main
# Paramètre CLÉ : active l'événement 'deployment' et spécifie l'environnement cible
deploy: production
# (Optionnel) Transmettre des variables au pipeline déclenché (ex: une version)
params:
- VERSION=${NEW_VERSION}
# (Optionnel) Attendre la fin du pipeline déclenché
wait: true
# Déclenche cette étape uniquement après une publication réussie
depends_on: [ commit_tag ]

View File

@@ -1 +1 @@
test
test 2222222

View File

@@ -0,0 +1 @@
-- none

View File

@@ -0,0 +1 @@
-- none

View File

@@ -0,0 +1 @@
-- none

View File

@@ -0,0 +1 @@
-- none

View File

@@ -0,0 +1 @@
-- none

View File

@@ -1,7 +1,7 @@
{
"name": "cicd",
"private": true,
"version": "0.0.8",
"version": "0.0.13",
"description": "Node.js Rest Apis with Express, Sequelize & PostgreSQL",
"scripts": {
"update:patch": "node scripts/update-version.js -patch",