Compare commits

...

16 Commits

Author SHA1 Message Date
Woodpecker CI
76c2e6800f chore: release v0.0.53 [skip ci] 2026-05-04 17:44:06 +00:00
spassignat
e13fe00108 patch: pipeline minio
All checks were successful
ci/woodpecker/push/build-pipeline Pipeline was successful
2026-05-04 19:43:08 +02:00
Woodpecker CI
5ef1f821a0 chore: release v0.0.52 [skip ci] 2026-05-04 17:41:21 +00:00
spassignat
95222843e6 patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/deployment/deploy-pipeline Pipeline failed
2026-05-04 19:40:20 +02:00
Woodpecker CI
ffa32e2e81 chore: release v0.0.51 [skip ci] 2026-05-04 17:36:51 +00:00
spassignat
7ee393b594 patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/deployment/deploy-pipeline Pipeline failed
2026-05-04 19:35:54 +02:00
Woodpecker CI
14342999e2 chore: release v0.0.50 [skip ci] 2026-05-04 17:32:02 +00:00
spassignat
0e18715f05 patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/deployment/deploy-pipeline Pipeline failed
2026-05-04 19:31:04 +02:00
spassignat
b64fa8fada 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-04 19:17:39 +02:00
spassignat
932c500c1b patch: pipeline minio 2026-05-04 19:17:28 +02:00
Woodpecker CI
72d52577e3 chore: release v0.0.49 [skip ci] 2026-05-04 17:09:55 +00:00
spassignat
3919254309 patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/deployment/deploy-pipeline Pipeline failed
2026-05-04 19:08:55 +02:00
spassignat
b4f2bb4e33 patch: pipeline minio 2026-05-04 19:03:21 +02:00
spassignat
75a3c7febb patch: pipeline minio 2026-05-04 18:54:00 +02:00
Woodpecker CI
735bdfe856 chore: release v0.0.48 [skip ci] 2026-05-04 16:44:58 +00:00
spassignat
f1b0885a30 patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline was successful
ci/woodpecker/deployment/deploy-pipeline Pipeline failed
2026-05-04 18:43:59 +02:00
8 changed files with 20 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ variables:
appleboy_drone_scp: &appleboy_drone_scp appleboy/drone-scp appleboy_drone_scp: &appleboy_drone_scp appleboy/drone-scp
appleboy_drone_ssh: &appleboy_drone_ssh appleboy/drone-ssh appleboy_drone_ssh: &appleboy_drone_ssh appleboy/drone-ssh
curlimages_curl: &curlimages_curl curlimages/curl:latest curlimages_curl: &curlimages_curl curlimages/curl:latest
nexus_repository: &nexus_repository domaine-passignat
nexus_url: &nexus_url http://nexus.cicd.exygen.fr/repository/domaine-passignat/apps nexus_url: &nexus_url http://nexus.cicd.exygen.fr/repository/domaine-passignat/apps
@@ -26,14 +27,18 @@ 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 NEXUS_REPOSITORY: *nexus_repository
NEXUS_URL: *nexus_url NEXUS_URL: *nexus_url
commands: | commands:
- ls -als - ls -als
- source .buildinfo - source .buildinfo
- more .buildinfo - env
- echo new version: ${NEW_VERSION} - echo $NEW_VERSION
- curl -o /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar "${NEXUS_URL}/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${VERSION}.tar" - echo ${NEW_VERSION}
- echo $NEXUS_URL
- echo ${NEXUS_URL}
- echo ${CI_REPO_NAME}
- curl -o /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar "$NEXUS_URL/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${NEW_VERSION}.tar"
depends_on: [ get-share-data ] depends_on: [ get-share-data ]
# Étape 7: Transfert vers le serveur distant (SCP) # Étape 7: Transfert vers le serveur distant (SCP)
@@ -68,19 +73,20 @@ steps:
envs: envs:
- SUDO_PASSWORD - SUDO_PASSWORD
script: script:
- source .buildinfo
- echo "$${SUDO_PASSWORD}" | sudo -S systemctl stop gestion - echo "$${SUDO_PASSWORD}" | sudo -S systemctl stop gestion
- mkdir -p /srv/volumes/gestion/{front-binaries,back-binaries,tmpdb} - mkdir -p /srv/volumes/gestion/{front-binaries,back-binaries,tmpdb}
- rm -rf /srv/volumes/gestion/front-binaries/* - rm -rf /srv/volumes/gestion/front-binaries/*
- rm -rf /srv/volumes/gestion/back-binaries/* - rm -rf /srv/volumes/gestion/back-binaries/*
- rm -rf /srv/volumes/gestion/tmpdb/* - rm -rf /srv/volumes/gestion/tmpdb/*
- tar -xvf /tmp/${CI_REPO_NAME}-${VERSION}.tar -C /tmp - tar -xvf /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar -C /tmp
- tar -xvf /tmp/front.tar.gz -C /srv/volumes/gestion/front-binaries - tar -xvf /tmp/front.tar.gz -C /srv/volumes/gestion/front-binaries
- tar -xzvf /tmp/back.tar.gz -C /srv/volumes/gestion/back-binaries - tar -xzvf /tmp/back.tar.gz -C /srv/volumes/gestion/back-binaries
- tar -xzvf /tmp/db.tar.gz -C /srv/volumes/gestion/tmpdb - tar -xzvf /tmp/db.tar.gz -C /srv/volumes/gestion/tmpdb
- rm -f /tmp/front.tar.gz - rm -f /tmp/front.tar.gz
- rm -f /tmp/back.tar.gz - rm -f /tmp/back.tar.gz
- rm -f /tmp/db.tar.gz - rm -f /tmp/db.tar.gz
- rm -f /tmp/${CI_REPO_NAME}-${VERSION}.tar - rm -f /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar
- docker-compose up database - docker-compose up database
- cd /srv/volumes/gestion/tmpdb - cd /srv/volumes/gestion/tmpdb
- npm ci --cache .npm --prefer-offline - npm ci --cache .npm --prefer-offline

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.47", "version": "0.0.53",
"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",