Compare commits

...

65 Commits

Author SHA1 Message Date
Woodpecker CI
69656f095d chore: release v0.0.21 [skip ci] 2026-05-04 06:16:58 +00:00
spassignat
1cc3d5b5eb patch: pipeline manual
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-04 08:15:57 +02:00
spassignat
228ad14fa9 Merge remote-tracking branch 'origin/main'
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-04 08:10:58 +02:00
spassignat
067acd0521 patch: pipeline manual 2026-05-04 08:10:51 +02:00
Woodpecker CI
91af4b5739 chore: release v0.0.20 [skip ci] 2026-05-04 05:53:19 +00:00
spassignat
e267aeb1ca patch: pipeline manual
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-04 07:52:17 +02:00
spassignat
4e5e8f0644 patch: pipeline manual
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-04 07:51:18 +02:00
spassignat
a253393f58 patch: pipeline manual
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-03 23:30:19 +02:00
spassignat
0b1308e8f0 Merge remote-tracking branch 'origin/main'
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/deployment/deploy-pipeline Pipeline failed
2026-05-03 21:11:55 +02:00
spassignat
838d7a42eb patch: pipeline manual 2026-05-03 21:11:48 +02:00
Woodpecker CI
55b60e06da chore: release v0.0.19 [skip ci] 2026-05-03 19:08:54 +00:00
spassignat
7ee90cba7c patch: pipeline manual
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-03 21:07:54 +02:00
spassignat
bbb29459f6 Merge remote-tracking branch 'origin/main'
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-03 21:06:00 +02:00
spassignat
f564b38987 patch: pipeline manual 2026-05-03 21:05:18 +02:00
Woodpecker CI
78cab3ffe2 chore: release v0.0.18 [skip ci] 2026-05-03 18:52:49 +00:00
spassignat
f8dcae93c5 patch: pipeline manual
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-03 20:51:41 +02:00
spassignat
244f46418b Merge remote-tracking branch 'origin/main'
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/manual/test Pipeline was successful
2026-05-03 16:59:19 +02:00
spassignat
c334f5ec09 patch: pipeline id 2026-05-03 16:59:13 +02:00
Woodpecker CI
9579676b0c chore: release v0.0.17 [skip ci]
All checks were successful
ci/woodpecker/manual/build-pipeline Pipeline was successful
2026-05-03 14:11:50 +00:00
spassignat
10dd888152 patch: pipeline id
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-03 16:10:48 +02:00
Woodpecker CI
d13bb14f34 chore: release v0.0.16 [skip ci] 2026-05-03 14:08:26 +00:00
spassignat
350d3881f0 patch: deploy to
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-03 16:07:25 +02:00
spassignat
69b5c0017f Merge remote-tracking branch 'origin/main'
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-03 16:05:35 +02:00
spassignat
08d234c8bc patch: deploy to 2026-05-03 16:05:12 +02:00
Woodpecker CI
38a422e305 chore: release v0.0.15 [skip ci] 2026-05-03 14:00:18 +00:00
spassignat
1e2cdf82e6 patch: with evt
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-03 15:59:15 +02:00
spassignat
7c88b67418 Merge remote-tracking branch 'origin/main' 2026-05-03 15:44:59 +02:00
spassignat
06f135a005 patch: with evt 2026-05-03 15:42:13 +02:00
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
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
spassignat
42ce3769cd Merge remote-tracking branch 'origin/main'
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-02 19:08:39 +02:00
spassignat
33ab64f609 patch: variable env 2026-05-02 18:51:12 +02:00
Woodpecker CI
e63b6c4e3f chore: release v0.0.8 [skip ci] 2026-05-02 14:27:12 +00:00
spassignat
9f5f919ff9 patch: variable env
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-02 16:26:12 +02:00
spassignat
bae02f80e2 Merge remote-tracking branch 'origin/main' 2026-05-02 16:25:46 +02:00
spassignat
0aa601d144 patch: variable env 2026-05-02 16:25:35 +02:00
Woodpecker CI
64b3ceff3f chore: release v0.0.7 [skip ci] 2026-05-02 14:20:13 +00:00
spassignat
692c001e9b patch: variable echo
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-02 16:19:11 +02:00
spassignat
f6019b9b5d Merge remote-tracking branch 'origin/main' 2026-05-02 16:18:57 +02:00
spassignat
e4e8eadd6d patch: variable echo 2026-05-02 16:18:48 +02:00
Woodpecker CI
a89ba6a734 chore: release v0.0.6 [skip ci] 2026-05-02 14:16:52 +00:00
spassignat
e00c052ae7 patch: variable
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-02 16:15:54 +02:00
Woodpecker CI
e1d0ab7eef chore: release v0.0.5 [skip ci] 2026-05-02 14:08:20 +00:00
22 changed files with 68 additions and 25 deletions

View File

@@ -1,8 +1,6 @@
when:
- event: push
branch: [ main ]
- event: pull_request
- event: manual
variables:
- &node_image node:18-alpine
@@ -14,12 +12,12 @@ steps:
- name: clean_project
image: *git_image
commands: |
ls -als /
touch /shared/build.txt
echo "1 $CI_WORKSPACE"
rm -rf dist
rm -f $CI_WORKSPACE/build/version.env
echo "✅ Nettoyage terminé"
depends_on: [ ]
# Étape 2: Analyser le message du commit
@@ -66,15 +64,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
@@ -112,33 +109,29 @@ steps:
from_secret: nexus_username
NEXUS_PASSWORD:
from_secret: nexus_password
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"
if [ ! -f "$ARTIFACT_FILE" ]; then
echo "❌ Fichier introuvable: $ARTIFACT_FILE"
ls -la $ARTIFACT_FILE
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" \
-F "raw.asset1.filename=$ARTIFACT" \
http://nexus.cicd.exygen.fr/service/rest/v1/components?repository=domaine-passignat
http://nexus.cicd.exygen.fr/service/rest/v1/components?repository=$NEXUS_REPOSITORY
echo "✅ Artefact publié"
else
echo "⏭️ Pas de publication (version_type=none)"
fi
ls -als
depends_on: [ package ]
# Étape 7: Commit et tag (après publication)
@@ -155,7 +148,11 @@ steps:
git config user.email "woodpecker@exygen.fr"
git config user.name "Woodpecker CI"
git add package.json ./database/src/sql/*.sql 2>/dev/null || true
mkdir -p .woodpecker/builds/
echo $NEW_VERSION > .woodpecker/builds/$CI_PIPELINE_NUMBER
git add ./database/src/sql/*.sql 2>/dev/null || true
git add package.json 2>/dev/null || true
git add .woodpecker/builds/$CI_PIPELINE_NUMBER 2>/dev/null || true
# Commiter uniquement s'il y a des changements
if ! git diff --cached --quiet; then
@@ -184,11 +181,12 @@ steps:
from_secret: woodpecker_token
commands: |
source $CI_WORKSPACE/version.env
if [ "$version_type" != "none" ]; then
echo "🚀 Déclenchement du déploiement pour la version $NEW_VERSION"
curl -X POST \
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" \
-H "Authorization: Bearer $WOODPECKER_TOKEN" \
-H "Content-Type: application/json" \
@@ -199,9 +197,35 @@ steps:
"deploy_id": "'$CI_PIPELINE_NUMBER'",
"ref": "refs/tags/v'$NEW_VERSION'"
}'
echo "✅ Événement deployment déclenché"
else
echo "⏭️ Pas de déclenchement (version_type=none)"
fi
depends_on: [ commit_tag ]
when:
- event: never
- 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)
branche: main
deploy_pipeline: ${CI_PIPELINE_NUMBER}
token:
from_secret: woodpecker_token
# Le dépôt cible, avec la branche optionnelle (format propriétaire/répertoire[@branche])
repo: domaine-passignat/gestion
# Paramètre CLÉ : active l'événement 'deployment' et spécifie l'environnement cible
deploy_to: 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 ]
when:
- event: never

1
.woodpecker/builds/95 Normal file
View File

@@ -0,0 +1 @@
0.0.21

View File

@@ -1,7 +1,7 @@
# Documentation: https://woodpecker-ci.org/docs/usage/workflow-syntax
when:
- event: deployment
- event: [ deployment,manual ]
steps:
- name: get-artifact

1
README.MD Normal file
View File

@@ -0,0 +1 @@
test 2222222x

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

@@ -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

@@ -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

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

View File

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

View File

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