Compare commits

..

14 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
6 changed files with 14 additions and 14 deletions

View File

@@ -8,7 +8,6 @@ variables:
- &node_image node:18-alpine
- &git_image alpine/git
- &curl_image curlimages/curl:latest
- &repository domaine-passignat
steps:
# Étape 1: Nettoyage du projet
@@ -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
@@ -113,10 +110,9 @@ 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"
@@ -126,17 +122,17 @@ 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" \
-F "raw.asset1.filename=$ARTIFACT" \
http://nexus.cicd.exygen.fr/service/rest/v1/components?repository=*repository
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)
@@ -185,7 +181,7 @@ steps:
if [ "$version_type" != "none" ]; then
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 \
"http://woodpecker.cicd.exygen.fr/api/repos/$CI_REPO_OWNER/$CI_REPO_NAME/pipelines" \
-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

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