Compare commits

..

26 Commits

Author SHA1 Message Date
Woodpecker CI
021c4ed2d3 chore: release v0.0.25 [skip ci] 2026-05-04 06:35:27 +00:00
spassignat
d06877bd7d patch: pipeline manual
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/deployment/deploy-pipeline Pipeline failed
2026-05-04 08:34:23 +02:00
Woodpecker CI
19625f0c13 chore: release v0.0.24 [skip ci] 2026-05-04 06:31:56 +00:00
spassignat
bcf510b936 patch: pipeline manual
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/deployment/deploy-pipeline Pipeline failed
2026-05-04 08:30:54 +02:00
Woodpecker CI
f6139782b4 chore: release v0.0.23 [skip ci] 2026-05-04 06:26:11 +00:00
spassignat
c4297c7c25 patch: pipeline manual
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/deployment/deploy-pipeline Pipeline failed
2026-05-04 08:25:08 +02:00
spassignat
f89ccb0f63 Merge remote-tracking branch 'origin/main' 2026-05-04 08:24:24 +02:00
spassignat
0ba8dd27f0 patch: pipeline manual 2026-05-04 08:24:13 +02:00
Woodpecker CI
b08a3913e7 chore: release v0.0.22 [skip ci] 2026-05-04 06:22:14 +00:00
spassignat
ac4d180382 patch: pipeline manual
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-04 08:21:11 +02:00
spassignat
c5da967d34 Merge remote-tracking branch 'origin/main'
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-04 08:18:12 +02:00
spassignat
e916154e4e patch: pipeline manual 2026-05-04 08:18:02 +02:00
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
17 changed files with 36 additions and 19 deletions

View File

@@ -12,7 +12,8 @@ steps:
- name: clean_project - name: clean_project
image: *git_image image: *git_image
commands: | commands: |
ls -als /
touch /shared/build.txt
echo "1 $CI_WORKSPACE" echo "1 $CI_WORKSPACE"
rm -rf dist rm -rf dist
rm -f $CI_WORKSPACE/build/version.env rm -f $CI_WORKSPACE/build/version.env
@@ -147,7 +148,14 @@ steps:
git config user.email "woodpecker@exygen.fr" git config user.email "woodpecker@exygen.fr"
git config user.name "Woodpecker CI" git config user.name "Woodpecker CI"
git add package.json ./database/src/sql/*.sql 2>/dev/null || true echo " Save pipeline info"
mkdir -p .woodpecker/builds/
echo NEW_VERSION=$NEW_VERSION > .woodpecker/builds/$CI_PIPELINE_NUMBER
git add .woodpecker/builds/$CI_PIPELINE_NUMBER 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
# Commiter uniquement s'il y a des changements # Commiter uniquement s'il y a des changements
if ! git diff --cached --quiet; then if ! git diff --cached --quiet; then

1
.woodpecker/builds/100 Normal file
View File

@@ -0,0 +1 @@
NEW_VERSION=0.0.24

1
.woodpecker/builds/102 Normal file
View File

@@ -0,0 +1 @@
NEW_VERSION=0.0.25

1
.woodpecker/builds/95 Normal file
View File

@@ -0,0 +1 @@
0.0.21

1
.woodpecker/builds/97 Normal file
View File

@@ -0,0 +1 @@
NEW_VERSION=0.0.22

1
.woodpecker/builds/98 Normal file
View File

@@ -0,0 +1 @@
NEW_VERSION=0.0.23

View File

@@ -1,15 +1,22 @@
# Documentation: https://woodpecker-ci.org/docs/usage/workflow-syntax # Documentation: https://woodpecker-ci.org/docs/usage/workflow-syntax
when: when:
- event: deployment - event: [ deployment,manual ]
steps: steps:
- name: get-artifact - name: get-artifact
image: curlimages/curl:latest image: curlimages/curl:latest
commands: | commands: |
VERSION=${CI_COMMIT_TAG#v} echo CI_PIPELINE_PARENT=$CI_PIPELINE_PARENT
curl -o /tmp/${CI_REPO_NAME}-${VERSION}.tar \ echo CI_COMMIT_TAG=$CI_COMMIT_TAG
"https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${VERSION}/${CI_REPO_NAME}-${VERSION}.tar" echo CI_PIPELINE_EVENT=$CI_PIPELINE_EVENT
echo CI_PIPELINE_NUMBER=$CI_PIPELINE_NUMBER
echo CI_PREV_PIPELINE_NUMBER=$CI_PREV_PIPELINE_NUMBER
echo CI_PREV_PIPELINE_PARENT=$CI_PREV_PIPELINE_PARENT
source .woodpecker/builds/$CI_PREV_PIPELINE_NUMBER
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"
# Étape 7: Transfert vers le serveur distant (SCP) # Étape 7: Transfert vers le serveur distant (SCP)
- name: transfert - name: transfert
@@ -22,7 +29,7 @@ steps:
password: password:
from_secret: remote_password from_secret: remote_password
port: 22 port: 22
source: /tmp/${CI_REPO_NAME}-${VERSION}.tar source: /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar
target: /tmp/ target: /tmp/
depends_on: [ get-artifact ] depends_on: [ get-artifact ]

View File

@@ -1,10 +0,0 @@
when:
- event: [ push, deployment, manual ]
steps:
- name: test
image: alpine
commands: |
echo "Pipeline déclenché !"
echo "Event: ${CI_PIPELINE_EVENT}"
echo "Deploy to: ${CI_PIPELINE_DEPLOY_TARGET}"

View File

@@ -1 +1 @@
test 2222222 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

@@ -1,7 +1,7 @@
{ {
"name": "cicd", "name": "cicd",
"private": true, "private": true,
"version": "0.0.18", "version": "0.0.25",
"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",