Compare commits

..

17 Commits

Author SHA1 Message Date
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
8 changed files with 16 additions and 16 deletions

View File

@@ -19,7 +19,6 @@ steps:
rm -rf dist rm -rf dist
rm -f $CI_WORKSPACE/build/version.env rm -f $CI_WORKSPACE/build/version.env
echo "✅ Nettoyage terminé" echo "✅ Nettoyage terminé"
depends_on: [ ] depends_on: [ ]
# Étape 2: Analyser le message du commit # Étape 2: Analyser le message du commit
@@ -66,15 +65,14 @@ steps:
echo "ARTIFACT=no-artifact" >> $CI_WORKSPACE/version.env echo "ARTIFACT=no-artifact" >> $CI_WORKSPACE/version.env
echo "⏭️ Pas de mise à jour de version" echo "⏭️ Pas de mise à jour de version"
fi fi
ls -als
depends_on: [ prepare ] depends_on: [ prepare ]
# Étape 4: Build de l'application # Étape 4: Build de l'application
- name: build - name: build
image: *node_image image: *node_image
commands: | commands:
npm ci --cache .npm --prefer-offline - npm ci --cache .npm --prefer-offline
npm run build - npm run build
depends_on: [ update_version ] depends_on: [ update_version ]
# Étape 5: Package des artefacts # Étape 5: Package des artefacts
@@ -112,33 +110,29 @@ steps:
from_secret: nexus_username from_secret: nexus_username
NEXUS_PASSWORD: NEXUS_PASSWORD:
from_secret: nexus_password from_secret: nexus_password
NEXUS_REPOSITORY: domaine-passignat
commands: | commands: |
source $CI_WORKSPACE/version.env source $CI_WORKSPACE/version.env
echo $CI_REPO_OWNER
echo $CI_REPO_NAME
if [ "$version_type" != "none" ]; then if [ "$version_type" != "none" ]; then
echo "📦 Publication de la version $NEW_VERSION : $ARTIFACT" echo "📦 Publication de la version $NEW_VERSION : $ARTIFACT"
if [ ! -f "$ARTIFACT_FILE" ]; then if [ ! -f "$ARTIFACT_FILE" ]; then
echo "❌ Fichier introuvable: $ARTIFACT_FILE" echo "❌ Fichier introuvable: $ARTIFACT_FILE"
ls -la $ARTIFACT_FILE ls -la $ARTIFACT_FILE
exit 1 exit 1
fi fi
curl -v \ curl -v --fail \
-u "$NEXUS_USERNAME:$NEXUS_PASSWORD" \ -u "$NEXUS_USERNAME:$NEXUS_PASSWORD" \
-F "raw.directory=apps/$CI_REPO_NAME/$NEW_VERSION" \ -F "raw.directory=apps/$CI_REPO_NAME/$NEW_VERSION" \
-F "raw.asset1=@$ARTIFACT_FILE" \ -F "raw.asset1=@$ARTIFACT_FILE" \
-F "raw.asset1.filename=$ARTIFACT" \ -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é" echo "✅ Artefact publié"
else else
echo "⏭️ Pas de publication (version_type=none)" echo "⏭️ Pas de publication (version_type=none)"
fi fi
ls -als
depends_on: [ package ] depends_on: [ package ]
# Étape 7: Commit et tag (après publication) # Étape 7: Commit et tag (après publication)
@@ -187,7 +181,7 @@ steps:
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 "http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines"
curl -X POST \ curl -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" \

1
README.MD Normal file
View File

@@ -0,0 +1 @@
test 22

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", "name": "cicd",
"private": true, "private": true,
"version": "0.0.4", "version": "0.0.9",
"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",