Compare commits

...

12 Commits

Author SHA1 Message Date
Woodpecker CI
8bf8e5448a chore: release v0.0.14 [skip ci] 2026-05-03 13:31:35 +00:00
spassignat
564b5e9f3c patch: with evt
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-03 15:30:32 +02:00
spassignat
ed31bcc0e3 Merge remote-tracking branch 'origin/main'
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-03 15:29:47 +02:00
spassignat
bd17026643 patch: with evt 2026-05-03 15:29:39 +02:00
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
6 changed files with 30 additions and 5 deletions

View File

@@ -178,11 +178,12 @@ steps:
from_secret: woodpecker_token from_secret: woodpecker_token
commands: | commands: |
source $CI_WORKSPACE/version.env source $CI_WORKSPACE/version.env
if [ "$version_type" != "none" ]; then if [ "$version_type" != "none" ]; then
echo "🚀 Déclenchement du déploiement pour la version $NEW_VERSION" 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" 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" \ "http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines" \
-H "Authorization: Bearer $WOODPECKER_TOKEN" \ -H "Authorization: Bearer $WOODPECKER_TOKEN" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
@@ -193,9 +194,30 @@ steps:
"deploy_id": "'$CI_PIPELINE_NUMBER'", "deploy_id": "'$CI_PIPELINE_NUMBER'",
"ref": "refs/tags/v'$NEW_VERSION'" "ref": "refs/tags/v'$NEW_VERSION'"
}' }'
echo "✅ Événement deployment déclenché" echo "✅ Événement deployment déclenché"
else else
echo "⏭️ Pas de déclenchement (version_type=none)" echo "⏭️ Pas de déclenchement (version_type=none)"
fi 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 ] depends_on: [ commit_tag ]

View File

@@ -1 +1 @@
test 222222 test 2222222

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", "name": "cicd",
"private": true, "private": true,
"version": "0.0.11", "version": "0.0.14",
"description": "Node.js Rest Apis with Express, Sequelize & PostgreSQL", "description": "Node.js Rest Apis with Express, Sequelize & PostgreSQL",
"scripts": { "scripts": {
"update:patch": "node scripts/update-version.js -patch", "update:patch": "node scripts/update-version.js -patch",