Compare commits

..

22 Commits

Author SHA1 Message Date
Woodpecker CI
fdf11214dd chore: release v0.0.41 [skip ci] 2026-05-04 14:52:34 +00:00
spassignat
e4dbf60a20 patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-04 16:51:37 +02:00
Woodpecker CI
307fb3c325 chore: release v0.0.40 [skip ci] 2026-05-04 14:46:03 +00:00
spassignat
e9162550bb patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/deployment/deploy-pipeline Pipeline failed
2026-05-04 16:45:05 +02:00
Woodpecker CI
9823520d00 chore: release v0.0.39 [skip ci] 2026-05-04 14:44:04 +00:00
spassignat
4e54bed176 patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-04 16:42:58 +02:00
spassignat
3c52e96359 patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-04 16:42:24 +02:00
Woodpecker CI
1444d14a57 chore: release v0.0.38 [skip ci] 2026-05-04 14:40:10 +00:00
spassignat
6a8156bc74 patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-04 16:39:10 +02:00
spassignat
cc0e6db4a7 patch: pipeline minio 2026-05-04 16:38:03 +02:00
spassignat
c49bfa33a8 patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-04 16:31:44 +02:00
spassignat
f3e9dee594 patch: pipeline manual
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed
2026-05-04 12:34:23 +02:00
Woodpecker CI
268930859e chore: release v0.0.37 [skip ci] 2026-05-04 10:12:07 +00:00
spassignat
02e548f723 patch: pipeline manual
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-04 12:10:34 +02:00
Woodpecker CI
1085ba4502 chore: release v0.0.36 [skip ci] 2026-05-04 09:39:41 +00:00
spassignat
cc65eb1ba9 patch: pipeline manual
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-04 11:38:40 +02:00
Woodpecker CI
9b9df6f9c1 chore: release v0.0.35 [skip ci] 2026-05-04 09:19:45 +00:00
spassignat
9d980e79c1 patch: pipeline manual
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-04 11:18:46 +02:00
Woodpecker CI
5a989e4a58 chore: release v0.0.34 [skip ci] 2026-05-04 09:05:46 +00:00
spassignat
e489c6ef1d patch: pipeline manual
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-04 11:04:45 +02:00
spassignat
d7bca9f4a5 Merge remote-tracking branch 'origin/main' 2026-05-04 11:04:30 +02:00
spassignat
f4664288a9 patch: pipeline manual 2026-05-04 11:04:25 +02:00
12 changed files with 36 additions and 27 deletions

View File

@@ -11,20 +11,15 @@ steps:
# Étape 1: Nettoyage du projet
- 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: [ ]
commands:
- rm -rf dist
- rm -f $CI_WORKSPACE/build/version.env
- echo "✅ Nettoyage terminé"
# Étape 2: Analyser le message du commit
- name: prepare
image: *git_image
commands: |
COMMIT_MSG=$(git log -1 --pretty=%B)
echo "📝 Message: $COMMIT_MSG"
@@ -131,10 +126,9 @@ steps:
else
echo "⏭️ Pas de publication (version_type=none)"
fi
depends_on: [ package ]
# Étape 7: Commit et tag (après publication)
# Étape 7: Commit et tag
- name: commit_tag
image: *git_image
environment:
@@ -142,19 +136,12 @@ steps:
from_secret: gitea_token
commands: |
source $CI_WORKSPACE/version.env
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 config user.email "woodpecker@exygen.fr"
git config user.name "Woodpecker CI"
echo " Save pipeline info"
BUILD=/shared/builds/$CI_REPO_REMOTE_ID/$CI_PIPELINE_NUMBER
mkdir -p /shared/builds/$CI_REPO_REMOTE_ID/
echo NEW_VERSION=$NEW_VERSION > $BUILD
echo NEW_VERSION=$NEW_VERSION > $BUILD
git add $BUILD 2>/dev/null || true
echo " add generated files (sql)"
git add ./database/src/sql/*.sql 2>/dev/null || true
git add package.json 2>/dev/null || true
@@ -175,9 +162,18 @@ steps:
else
echo "⚠️ Aucun changement à commiter"
fi
ls -alsR /shared/builds/
depends_on: [ publish ]
- name: share-data
image: minio/mc
commands:
- echo " Save pipeline info"
- echo NEW_VERSION=$NEW_VERSION > .buildinfo
- mc alias set local http://minio:9000 minioadmin minioadmin123
- mc mb local || true
- mc cp .buildinfo local/repository_$CI_REPO_REMOTE_ID/pipeline_$CI_PIPELINE_NUMBER
depends_on: [ commit_tag ]
# Étape 8: Déclencher le déploiement
- name: trigger-deployment
image: curlimages/curl:latest

View File

@@ -4,13 +4,18 @@ when:
- event: [ deployment,manual ]
steps:
- name: share-data
image: minio/mc
commands:
- echo " Save pipeline info"
- echo NEW_VERSION=$NEW_VERSION > .buildinfo
- mc alias set local http://minio:9000 minioadmin minioadmin123
- mc get local/repository_$CI_REPO_REMOTE_ID/pipeline_$CI_PIPELINE_PARENT .buildinfo
- name: get-artifact
image: curlimages/curl:latest
commands: |
env
BUILD=/shared/builds/$CI_REPO_REMOTE_ID/$CI_PIPELINE_PARENT
ls -alsR /shared/builds/
source $BUILD
source .buildinfo
echo new version: ${NEW_VERSION}
curl -o /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar \
"https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${VERSION}.tar"
@@ -28,7 +33,7 @@ steps:
port: 22
source: /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar
target: /tmp/
depends_on: [ get-artifact ]
depends_on: [ get-artifact ,share-data]
# Étape 8: Déploiement sur le serveur distant
- name: deploy

View File

@@ -1 +1 @@
test 2222222x
test 2222222xxxlm

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.33",
"version": "0.0.41",
"description": "Node.js Rest Apis with Express, Sequelize & PostgreSQL",
"scripts": {
"update:patch": "node scripts/update-version.js -patch",