Compare commits

...

10 Commits

Author SHA1 Message Date
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
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
5 changed files with 10 additions and 6 deletions

View File

@@ -18,6 +18,7 @@ steps:
- mc alias set local http://minio:9000 minioadmin minioadmin123
- mc get local/cicd/repository_$CI_REPO_REMOTE_ID/pipeline_$CI_PIPELINE_PARENT .buildinfo
- ls -als
- more .buildinfo
- name: get-artifact
image: *curlimages_curl
@@ -28,11 +29,10 @@ steps:
from_secret: nexus_password
NEXUS_REPOSITORY: domaine-passignat
NEXUS_URL: *nexus_url
commands: |
commands:
- ls -als
- source .buildinfo
- echo new version: ${NEW_VERSION}
- curl -o /tmp/${CI_REPO_NAME}-${NEW_VERSION}.tar "$NEXUS_URL/${CI_REPO_NAME}/${NEW_VERSION}/${CI_REPO_NAME}-${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 ]
# Étape 7: Transfert vers le serveur distant (SCP)
@@ -67,19 +67,20 @@ steps:
envs:
- SUDO_PASSWORD
script:
- source .buildinfo
- echo "$${SUDO_PASSWORD}" | sudo -S systemctl stop gestion
- mkdir -p /srv/volumes/gestion/{front-binaries,back-binaries,tmpdb}
- rm -rf /srv/volumes/gestion/front-binaries/*
- rm -rf /srv/volumes/gestion/back-binaries/*
- 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 -xzvf /tmp/back.tar.gz -C /srv/volumes/gestion/back-binaries
- tar -xzvf /tmp/db.tar.gz -C /srv/volumes/gestion/tmpdb
- rm -f /tmp/front.tar.gz
- rm -f /tmp/back.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
- cd /srv/volumes/gestion/tmpdb
- 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

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