Compare commits

...

6 Commits

Author SHA1 Message Date
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
Woodpecker CI
7ef43a29cb chore: release v0.0.47 [skip ci] 2026-05-04 16:36:26 +00:00
spassignat
3f6dddcd0a 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:35:26 +02:00
spassignat
a2512b1cca 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 18:32:53 +02:00
spassignat
bcee6b5514 patch: pipeline minio 2026-05-04 18:30:52 +02:00
4 changed files with 9 additions and 5 deletions

View File

@@ -31,8 +31,9 @@ steps:
commands: | commands: |
- ls -als - ls -als
- source .buildinfo - source .buildinfo
- echo new version: ${NEW_VERSION} - more .buildinfo
- curl -o /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar "$NEXUS_URL/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${VERSION}.tar" - echo new version: ${NEXUS_URL}/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${NEW_VERSION}.tar
- 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)
@@ -67,19 +68,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

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