patch: pipeline minio
Some checks failed
ci/woodpecker/push/build-pipeline Pipeline failed

This commit is contained in:
spassignat
2026-05-04 16:31:44 +02:00
parent f3e9dee594
commit c49bfa33a8

View File

@@ -136,8 +136,6 @@ steps:
# Étape 7: Commit et tag
- name: commit_tag
image: *git_image
volumes:
- wp-shared:/shared
environment:
GITEA_TOKEN:
from_secret: gitea_token
@@ -154,13 +152,6 @@ steps:
git config user.email "woodpecker@exygen.fr"
git config user.name "Woodpecker CI"
echo " Save pipeline info"
BUILD=/shared/builds/$CI_REPO_REMOTE_ID/$CI_PIPELINE_NUMBER
mkdir -p /shared/builds/$CI_REPO_REMOTE_ID/
echo NEW_VERSION=$NEW_VERSION > $BUILD
echo NEW_VERSION=$NEW_VERSION > $BUILD
git add $BUILD 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
@@ -184,6 +175,16 @@ steps:
ls -alsR /shared/builds/
depends_on: [ publish ]
- name: share-data
image: minio/mc
commands:
- echo " Save pipeline info"
- echo NEW_VERSION=$NEW_VERSION > .buildinfo
- mc alias set local http://minio:9000 minioadmin minioadmin123
- mc mb local/ci || true
- mc cp .buildinfo local/ci/$CI_REPO_REMOTE_ID/$CI_PIPELINE_NUMBER
depends_on: [ commit_tag ]
# Étape 8: Déclencher le déploiement
- name: trigger-deployment
image: curlimages/curl:latest
@@ -239,7 +240,3 @@ steps:
depends_on: [ commit_tag ]
when:
- event: never
volumes:
wp-shared:
host:
path: /shared