Compare commits

..

8 Commits

Author SHA1 Message Date
Woodpecker CI
68710f91f4 chore: release v0.0.27 [skip ci] 2026-05-04 06:54:28 +00:00
spassignat
fd19361e35 patch: pipeline manual
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-04 08:53:28 +02:00
Woodpecker CI
213d061f0b chore: release v0.0.26 [skip ci] 2026-05-04 06:39:19 +00:00
spassignat
9f43203b94 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:38:16 +02:00
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
11 changed files with 18 additions and 4 deletions

View File

@@ -149,7 +149,9 @@ steps:
git config user.name "Woodpecker CI" git config user.name "Woodpecker CI"
echo " Save pipeline info" echo " Save pipeline info"
env
mkdir -p .woodpecker/builds/ mkdir -p .woodpecker/builds/
echo NEW_VERSION=$NEW_VERSION > .woodpecker/builds/$CI_REPO_ID/$CI_PIPELINE_ID/$CI_PIPELINE_NUMBER
echo NEW_VERSION=$NEW_VERSION > .woodpecker/builds/$CI_PIPELINE_NUMBER echo NEW_VERSION=$NEW_VERSION > .woodpecker/builds/$CI_PIPELINE_NUMBER
git add .woodpecker/builds/$CI_PIPELINE_NUMBER 2>/dev/null || true git add .woodpecker/builds/$CI_PIPELINE_NUMBER 2>/dev/null || true

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/104 Normal file
View File

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

1
.woodpecker/builds/106 Normal file
View File

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

View File

@@ -7,14 +7,18 @@ steps:
- name: get-artifact - name: get-artifact
image: curlimages/curl:latest image: curlimages/curl:latest
commands: | commands: |
env
echo CI_PIPELINE_PARENT=$CI_PIPELINE_PARENT echo CI_PIPELINE_PARENT=$CI_PIPELINE_PARENT
echo CI_COMMIT_TAG=$CI_COMMIT_TAG echo CI_COMMIT_TAG=$CI_COMMIT_TAG
echo CI_PIPELINE_EVENT=$CI_PIPELINE_EVENT echo CI_PIPELINE_EVENT=$CI_PIPELINE_EVENT
echo CI_PIPELINE_NUMBER=$CI_PIPELINE_NUMBER echo CI_PIPELINE_NUMBER=$CI_PIPELINE_NUMBER
echo CI_PREV_PIPELINE_NUMBER=$CI_PREV_PIPELINE_NUMBER echo CI_PREV_PIPELINE_NUMBER=$CI_PREV_PIPELINE_NUMBER
echo CI_PREV_PIPELINE_PARENT=$CI_PREV_PIPELINE_PARENT echo CI_PREV_PIPELINE_PARENT=$CI_PREV_PIPELINE_PARENT
curl -o /tmp/${CI_REPO_NAME}-${VERSION}.tar \ ls -als .woodpecker/builds
"https://nexus.cicd.exygen.fr/repository/domaine-passignat/apps/${CI_REPO_NAME}/${VERSION}/${CI_REPO_NAME}-${VERSION}.tar" 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
@@ -27,7 +31,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

@@ -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.23", "version": "0.0.27",
"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",