Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9579676b0c | ||
|
|
10dd888152 | ||
|
|
d13bb14f34 | ||
|
|
350d3881f0 | ||
|
|
69b5c0017f | ||
|
|
08d234c8bc | ||
|
|
38a422e305 | ||
|
|
1e2cdf82e6 | ||
|
|
7c88b67418 | ||
|
|
06f135a005 | ||
|
|
8bf8e5448a | ||
|
|
564b5e9f3c | ||
|
|
ed31bcc0e3 | ||
|
|
bd17026643 |
@@ -178,7 +178,6 @@ steps:
|
||||
from_secret: woodpecker_token
|
||||
commands: |
|
||||
source $CI_WORKSPACE/version.env
|
||||
|
||||
if [ "$version_type" != "none" ]; then
|
||||
echo "🚀 Déclenchement du déploiement pour la version $NEW_VERSION"
|
||||
echo "🚀 $CI_REPO_OWNER"
|
||||
@@ -195,27 +194,26 @@ steps:
|
||||
"deploy_id": "'$CI_PIPELINE_NUMBER'",
|
||||
"ref": "refs/tags/v'$NEW_VERSION'"
|
||||
}'
|
||||
|
||||
echo "✅ Événement deployment déclenché"
|
||||
else
|
||||
echo "⏭️ Pas de déclenchement (version_type=none)"
|
||||
fi
|
||||
depends_on: [ commit_tag ]
|
||||
|
||||
|
||||
- name: trigger-deployment2
|
||||
image: woodpeckerci/plugin-trigger
|
||||
settings:
|
||||
# L'URL de votre serveur Woodpecker
|
||||
server: https://woodpecker.cicd.exygen.fr
|
||||
# Le token d'API (doit être stocké comme secret)
|
||||
branche: main
|
||||
deploy_pipeline: ${CI_PIPELINE_NUMBER}
|
||||
token:
|
||||
from_secret: woodpecker_token
|
||||
# Le dépôt cible, avec la branche optionnelle (format propriétaire/répertoire[@branche])
|
||||
repositories:
|
||||
- domaine-passignat/gestion@main
|
||||
repo: domaine-passignat/gestion
|
||||
# Paramètre CLÉ : active l'événement 'deployment' et spécifie l'environnement cible
|
||||
deploy: production
|
||||
deploy_to: production
|
||||
# (Optionnel) Transmettre des variables au pipeline déclenché (ex: une version)
|
||||
params:
|
||||
- VERSION=${NEW_VERSION}
|
||||
|
||||
1
database/src/sql/version-0.0.13-0.0.14.sql
Normal file
1
database/src/sql/version-0.0.13-0.0.14.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.14-0.0.15.sql
Normal file
1
database/src/sql/version-0.0.14-0.0.15.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.15-0.0.16.sql
Normal file
1
database/src/sql/version-0.0.15-0.0.16.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
1
database/src/sql/version-0.0.16-0.0.17.sql
Normal file
1
database/src/sql/version-0.0.16-0.0.17.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- none
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "cicd",
|
||||
"private": true,
|
||||
"version": "0.0.13",
|
||||
"version": "0.0.17",
|
||||
"description": "Node.js Rest Apis with Express, Sequelize & PostgreSQL",
|
||||
"scripts": {
|
||||
"update:patch": "node scripts/update-version.js -patch",
|
||||
|
||||
Reference in New Issue
Block a user